Skip to content

Commit

Permalink
Update backport.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
akoeplinger authored Aug 17, 2020
1 parent cb89dc6 commit ff11fe9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# figure out who to tag on the backport PR
cc_users="@${{ github.event.comment.user.login }}"
if [[ "${{ github.event.comment.user.login }}" != "${{ github.event.issue.user.login }}" ]]; then
cc_users="$cc_users @${{ github.event.issue.user.login }}"
fi
gh pr create --base ${{ steps.targetbranch.outputs.branchname }} --title "[${{ steps.targetbranch.outputs.branchname }}] ${{ github.event.issue.title }}" --body "Backport of #${{ github.event.issue.number }}.\n\n/cc $cc_users"
# open the PR
hub pull-request --base ${{ steps.targetbranch.outputs.branchname }} --message "[${{ steps.targetbranch.outputs.branchname }}] ${{ github.event.issue.title }}\nBackport of #${{ github.event.issue.number }}.\n\n/cc $cc_users"

0 comments on commit ff11fe9

Please sign in to comment.