We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f462509 commit 51a1fc5Copy full SHA for 51a1fc5
azure-pipelines-templates/check-code-style.yml
@@ -52,7 +52,7 @@ steps:
52
"Working branch is $branchName" | Write-Host -ForegroundColor White
53
54
# list PR files
55
- $prFiles = Invoke-WebRequest "https://api.github.com/repos/$env:Build_Repository_Name/pulls/$env:System_PullRequest_PullRequestNumber/files" | ConvertFrom-Json
+ $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
56
57
"Starting file check..." | Write-Host -ForegroundColor White
58
0 commit comments