Skip to content

Commit

Permalink
Sync eng/common directory with azure-sdk-tools repository (#8640)
Browse files Browse the repository at this point in the history
  • Loading branch information
azure-sdk authored Mar 2, 2020
1 parent caec48f commit 6f714a5
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions eng/common/Extract-ReleaseNotes.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,7 @@ else
if ($releaseNotes.ContainsKey($VersionString))
{
$releaseNotesForVersion = $releaseNotes[$VersionString].ReleaseContent
$releaseNotesArray = $releaseNotesForVersion.Split([Environment]::NewLine)
$processedNotes = New-Object System.Collections.ArrayList
foreach ($line in $releaseNotesArray)
{
$lineIsTitle = $line.Startswith('#') -And ($line -match $RELEASE_TITLE_REGEX)
if (-Not $lineIsTitle)
{
$processedNotes.Add($line) > $null
}
}
$processedNotes = $releaseNotesForVersion -Split [Environment]::NewLine | where { $_ -notmatch $RELEASE_TITLE_REGEX }
return $processedNotes -Join [Environment]::NewLine
}
Write-Error "Release Notes for the Specified version ${VersionString} was not found"
Expand Down

0 comments on commit 6f714a5

Please sign in to comment.