Skip to content

Commit

Permalink
Fix create-pull-request bug (#1131)
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu authored and benbp committed Dec 1, 2020
1 parent 2b0ceee commit 816b0c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ steps:
-UserReviewers "${{ parameters.GHReviewersVariable }}"
-TeamReviewers "${{ parameters.GHTeamReviewersVariable }}"
-Assignees "${{ parameters.GHAssignessVariable }}"
-CloseAfterOpenForTesting $${{ parameters.CloseAfterOpenForTesting }}
-CloseAfterOpenForTesting $${{ coalesce(parameters.CloseAfterOpenForTesting, 'false') }}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ parameters:
GHReviewersVariable: ''
GHTeamReviewersVariable: '' # externally set, as eng-common does not have the identity-resolver. Run as pre-step
OnboardingBranch: ''
CloseAfterOpenForTesting: false

steps:
- pwsh: |
Expand Down Expand Up @@ -83,7 +84,7 @@ steps:
GHReviewersVariable: ${{ parameters.GHReviewersVariable }}
GHTeamReviewersVariable: ${{ parameters.GHTeamReviewersVariable }}
PRLabels: ${{ parameters.PRLabels }}
CloseAfterOpenForTesting: $(TestPipeline)
CloseAfterOpenForTesting: ${{ parameters.CloseAfterOpenForTesting }}

- ${{if ne( parameters['OnboardingBranch'], '')}}:
- pwsh: |
Expand Down Expand Up @@ -124,4 +125,4 @@ steps:
ScriptDirectory: ${{ parameters.WorkingDirectory }}/${{ parameters.ScriptDirectory }}
GHReviewersVariable: ${{ parameters.GHReviewersVariable }}
GHTeamReviewersVariable: ${{ parameters.GHTeamReviewersVariable }}
CloseAfterOpenForTesting: $(TestPipeline)
CloseAfterOpenForTesting: ${{ parameters.CloseAfterOpenForTesting }}
4 changes: 2 additions & 2 deletions eng/common/scripts/Invoke-GitHubAPI.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function Invoke-GitHubAPIPost {
else {
$warning = "{0} with Uri [ $apiURI ] did not fire request because of empty body." -f (Get-PSCallStack)[1].FunctionName
LogWarning $warning
exit 0
return $null
}
}
catch {
Expand Down Expand Up @@ -69,7 +69,7 @@ function Invoke-GitHubAPIPatch {
else {
$warning = "{0} with Uri [ $apiURI ] did not fire request because of empty body." -f (Get-PSCallStack)[1].FunctionName
LogWarning $warning
exit 0
return $null
}
}
catch {
Expand Down

0 comments on commit 816b0c1

Please sign in to comment.