Skip to content

Commit

Permalink
fix: body is too long when create github release (#16846)
Browse files Browse the repository at this point in the history
Co-authored-by: tadelesh <tadelesh.shi@live.cn>
  • Loading branch information
azure-sdk and tadelesh authored Jan 18, 2022
1 parent 3742929 commit 6bc7fee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eng/common/scripts/artifact-metadata-parsing.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ function CreateReleases($pkgList, $releaseApiUrl, $releaseSha) {
if ($pkgInfo.ReleaseNotes -ne $null) {
$releaseNotes = $pkgInfo.ReleaseNotes
}
# As github api limit the body param length with 125000 characters, we have to truncate the release note if needed.
if ($releaseNotes.Length -gt 124996) {
$releaseNotes = $releaseNotes.SubString(0, 124996) + " ..."
}

$isPrerelease = $False

Expand Down

0 comments on commit 6bc7fee

Please sign in to comment.