Skip to content

Commit f462509

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

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
@@ -24,7 +24,7 @@ steps:
2424
2525
# find PR
2626
"Getting PR#$env:System_PullRequest_PullRequestNumber details..." | Write-Host -ForegroundColor White -NoNewline
27-
$pr = Invoke-WebRequest "https://api.github.com/repos/$env:Build_Repository_Name/pulls/$env:System_PullRequest_PullRequestNumber" | ConvertFrom-Json
27+
$pr = Invoke-RestMethod -Uri "https://api.github.com/repos/$env:Build_Repository_Name/pulls/$env:System_PullRequest_PullRequestNumber" -Header @{"Authorization"="$auth"} -ContentType "application/json" -Method GET
2828
2929
if($($pr.number) -eq "$env:System_PullRequest_PullRequestNumber")
3030
{

0 commit comments

Comments
 (0)