We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20ce595 commit fdb4aa2Copy full SHA for fdb4aa2
azure-pipelines.yml
@@ -92,8 +92,9 @@ stages:
92
targetType: 'inline'
93
script: |
94
# Set the target branch for comparison
95
- $targetBranch = "origin/$(System.PullRequest.TargetBranch)"
96
- if (-not $env:SYSTEM_PULLREQUEST_TARGETBRANCH) {
+ if ($env:SYSTEM_PULLREQUEST_TARGETBRANCH) {
+ $targetBranch = "origin/$env:SYSTEM_PULLREQUEST_TARGETBRANCH"
97
+ } else {
98
$targetBranch = "origin/main"
99
}
100
0 commit comments