Skip to content

Commit 51a1fc5

Browse files
authored
Work CI-CD
- Replace webrequest with PS call and add authentication to check code style AZDO task. ***NO_CI***
1 parent f462509 commit 51a1fc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

azure-pipelines-templates/check-code-style.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ steps:
5252
"Working branch is $branchName" | Write-Host -ForegroundColor White
5353
5454
# list PR files
55-
$prFiles = Invoke-WebRequest "https://api.github.com/repos/$env:Build_Repository_Name/pulls/$env:System_PullRequest_PullRequestNumber/files" | ConvertFrom-Json
55+
$prFiles = Invoke-RestMethod -Uri "https://api.github.com/repos/$env:Build_Repository_Name/pulls/$env:System_PullRequest_PullRequestNumber/files" -Header @{"Authorization"="$auth"} -ContentType "application/json" -Method GET
5656
5757
"Starting file check..." | Write-Host -ForegroundColor White
5858

0 commit comments

Comments
 (0)