Skip to content

Commit

Permalink
Add a label to backport PRs in preparation for backport automerge
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon committed Apr 2, 2024
1 parent 01195ed commit d73905a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
# opensearch-trigger-bot installation ID
#installation_id: 22958780
installation_id: 22958780

- name: Backport
uses: VachaShah/[email protected]
Expand All @@ -44,6 +44,6 @@ jobs:
PR_BRANCH=backport/backport-<%= number %>-to-<%= base %>
PR_NUMBER=`gh pr list -R peterzhuamazon/documentation-website --json "number,headRefName" --state open | jq -r ".[] | select(.headRefName == \"$PR_BRANCH\") | .number"`
echo "Update Backport PR #$PR_NUMBER on branch $PR_BRANCH with backport-automerge label"
gh issue edit -R peterzhuamazon/documentation-website $PR_NUMBER --add-label backport-automerge
gh issue edit -R opensearch-project/documentation-website $PR_NUMBER --add-label backport-automerge
env:
GH_TOKEN: ${{ steps.github_app_token.outputs.token }}

0 comments on commit d73905a

Please sign in to comment.