Enable automation for go release notes (#3330)

- Temporary allow changelog versions with v
This commit is contained in:
Wes Haggard 2021-09-09 15:09:23 -07:00 коммит произвёл GitHub
Родитель e3e606c099
Коммит 41f4920c94
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -15,8 +15,8 @@ parameters:
azure-sdk-for-net:
Language: dotnet
# Go repo doesn't currently follow the changelog guidelines
# azure-sdk-for-go:
# Language: go
azure-sdk-for-go:
Language: go
azure-sdk-for-ios:
Language: ios
azure-sdk-for-java:

Просмотреть файл

@ -13,6 +13,9 @@ param (
. (Join-Path $PSScriptRoot PackageList-Helpers.ps1)
. (Join-Path $PSScriptRoot PackageVersion-Helpers.ps1)
# Temporary replacment for the title regex to discover versions starting with v for go on-boarding until we can normalize those.
$RELEASE_TITLE_REGEX = "(?<releaseNoteTitle>^\#+\s+v?(?<version>$([AzureEngSemanticVersion]::SEMVER_REGEX))(\s+(?<releaseStatus>\(.+\))))"
function GetReleaseNotesData ($packageName, $packageVersion, $packageMetadata)
{
$sourceUrl = GetLinkTemplateValue $langLinkTemplates "source_url_template" $packageName $packageVersion $packageMetadata.RepoPath
@ -37,7 +40,7 @@ function GetReleaseNotesData ($packageName, $packageVersion, $packageMetadata)
if (!$updatedVersionEntry)
{
# Skip if the changelog Url is invalid
LogWarning "Failed to get find matching change log entry from from ${changelogRawLink}"
LogWarning "Failed to find matching change log entry from from ${changelogRawLink}"
LogWarning "ReleaseNotes will not be collected for $packageName : $packageVersion. Please add entry manually."
return $null
}