Sync eng/common directory with azure-sdk-tools for PR 7630 (#5325)

* Add ContentType header to Update-GitHubIssue

* replaced application/json

* Update eng/common/scripts/Invoke-GitHubAPI.ps1

Co-authored-by: Daniel Jurek <djurek@microsoft.com>

---------

Co-authored-by: Peng Jiahui <804873052@qq.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
Co-authored-by: Daniel Jurek <djurek@microsoft.com>
This commit is contained in:
Azure SDK Bot 2024-02-06 00:34:20 -08:00 committed by GitHub
parent dcc15a63a0
commit 1497f919a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -402,7 +402,8 @@ function Update-GitHubIssue {
-Body ($parameters | ConvertTo-Json) `
-Uri $uri `
-Headers (Get-GitHubApiHeaders -token $AuthToken) `
-MaximumRetryCount 3
-MaximumRetryCount 3 `
-ContentType "application/json"
}
function Remove-GitHubSourceReferences {