Skip to content

Commit 428258b

Browse files
Fix bug in Changelog URL path using packageDirectoryName (#17298)
Co-authored-by: Chidozie Ononiwu <[email protected]>
1 parent a8c6386 commit 428258b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

eng/common/scripts/Collect-ChangeLogs.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ foreach ($packageProp in $allPackageProps) {
2828
$changeLogEntries = Get-ChangeLogEntries -ChangeLogLocation $changeLogLocation
2929
$packageName = $packageProp.Name
3030
$serviceDirectory = $packageProp.ServiceDirectory
31+
$packageDirectoryname = Split-Path -Path $packageProp.DirectoryPath -Leaf
3132

3233
foreach ($changeLogEntry in $changeLogEntries.Values) {
3334
if ([System.String]::IsNullOrEmpty($changeLogEntry.ReleaseStatus))
@@ -48,7 +49,7 @@ foreach ($packageProp in $allPackageProps) {
4849

4950
$releaseHighlights[$key] = @{}
5051
$releaseHighlights[$key]["PackageProperties"] = $packageProp
51-
$releaseHighlights[$key]["ChangelogUrl"] = "https://github.com/Azure/azure-sdk-for-${LanguageShort}/blob/${releaseTag}/sdk/${serviceDirectory}/${packageName}/CHANGELOG.md#${githubAnchor}"
52+
$releaseHighlights[$key]["ChangelogUrl"] = "https://github.com/Azure/azure-sdk-for-${LanguageShort}/blob/${releaseTag}/sdk/${serviceDirectory}/${packageDirectoryname}/CHANGELOG.md#${githubAnchor}"
5253
$releaseHighlights[$key]["Content"] = @()
5354

5455
$changeLogEntry.ReleaseContent | %{

0 commit comments

Comments
 (0)