Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Track1 code check script #18107

Merged
merged 8 commits into from
Jan 21, 2021
Merged
2 changes: 1 addition & 1 deletion eng/scripts/Track1CodeCheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ try {
Write-Host "Check PR associate"
Write-Host "REPOSITORY_NAME: $Env:REPOSITORY_NAME"
Write-Host "PULLREQUEST_ID: $Env:PULLREQUEST_ID"
if (($null -eq $Env:REPOSITORY_NAME) -or ($null -eq $Env:PULLREQUEST_ID) -or ($Env:REPOSITORY_NAME -eq "") -or ($Env:PULLREQUEST_ID -eq "")) {
if (($null -eq $Env:REPOSITORY_NAME) -or ($null -eq $Env:PULLREQUEST_ID) -or ($Env:REPOSITORY_NAME -eq "") -or ($Env:PULLREQUEST_ID -eq "") -or ($Env:PULLREQUEST_ID -match 'PullRequestNumber')) {
Write-Host "There is no PR associate with this run, skip the code check." -ForegroundColor red -BackgroundColor white
break
}
Expand Down