From 0970bdc868c62c26d4c9217166cbbdd5d5d7dbbd Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 6 Feb 2024 00:34:21 -0800 Subject: [PATCH] Sync eng/common directory with azure-sdk-tools for PR 7630 (#22349) * Add ContentType header to Update-GitHubIssue * replaced application/json * Update eng/common/scripts/Invoke-GitHubAPI.ps1 Co-authored-by: Daniel Jurek --------- Co-authored-by: Peng Jiahui <804873052@qq.com> Co-authored-by: Wes Haggard Co-authored-by: Daniel Jurek --- eng/common/scripts/Invoke-GitHubAPI.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eng/common/scripts/Invoke-GitHubAPI.ps1 b/eng/common/scripts/Invoke-GitHubAPI.ps1 index 6b96f0920f41..c4a9fa5bb11e 100644 --- a/eng/common/scripts/Invoke-GitHubAPI.ps1 +++ b/eng/common/scripts/Invoke-GitHubAPI.ps1 @@ -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 {