Enable automation for go release notes (#3330)
- Temporary allow changelog versions with v
This commit is contained in:
Родитель
e3e606c099
Коммит
41f4920c94
|
@ -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
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче