Skip to content

Commit

Permalink
Fix create-pull-request bug (Azure#12001)
Browse files Browse the repository at this point in the history
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
  • Loading branch information
azure-sdk and chidozieononiwu committed Oct 22, 2020
1 parent 122b9cd commit 2a6d439
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Expand Up @@ -86,4 +86,4 @@ steps:
-UserReviewers "${{ parameters.GHReviewersVariable }}"
-TeamReviewers "${{ parameters.GHTeamReviewersVariable }}"
-Assignees "${{ parameters.GHAssignessVariable }}"
-CloseAfterOpenForTesting $${{ parameters.CloseAfterOpenForTesting }}
-CloseAfterOpenForTesting $${{ coalesce(parameters.CloseAfterOpenForTesting, 'false') }}
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
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 2a6d439

Please sign in to comment.