File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -400,7 +400,7 @@ jobs:
400
400
targetType : filePath
401
401
filePath : azure-pipelines/update-dependencies.ps1
402
402
env :
403
- GH_TOKEN : $(GitHubToken)
403
+ GITHUB_TOKEN : $(GitHubToken)
404
404
405
405
# #################################
406
406
# report build failure to Discord
Original file line number Diff line number Diff line change 5
5
6
6
# compute authorization header in format "AUTHORIZATION: basic 'encoded token'"
7
7
# 'encoded token' is the Base64 of the string "nfbot:personal-token"
8
- $auth = " basic $ ( [System.Convert ]::ToBase64String([System.Text.Encoding ]::UTF8.GetBytes(" nfbot:$env: GH_TOKEN " ))) "
8
+ $auth = " basic $ ( [System.Convert ]::ToBase64String([System.Text.Encoding ]::UTF8.GetBytes(" nfbot:$env: GITHUB_TOKEN " ))) "
9
9
10
10
# init/reset these
11
11
$prTitle = " "
@@ -127,6 +127,12 @@ if ($repoStatus -ne "") {
127
127
$result = Invoke-RestMethod - Method Post - UserAgent [Microsoft.PowerShell.Commands.PSUserAgent ]::InternetExplorer - Uri $githubApiEndpoint - Header $headers - ContentType " application/json" - Body $prRequestBody
128
128
' Started PR with dependencies update...' | Write-Host - NoNewline
129
129
' OK' | Write-Host - ForegroundColor Green
130
+
131
+ # add labels to PR
132
+ $prNumber = $result.number
133
+
134
+ gh pr edit $prNumber -- add-label " VS2019"
135
+ gh pr edit $prNumber -- add-label " VS2022"
130
136
}
131
137
catch {
132
138
$result = $_.Exception.Response.GetResponseStream ()
You can’t perform that action at this time.
0 commit comments