Skip to content

Commit

Permalink
new ref format
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelishman committed Sep 14, 2023
1 parent d1b6a06 commit 0b7b379
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -e
# Split Mergify's branch name (e.g. 'mergify/bp/stable/0.25/pr-10828') on the final '-' to
# get the number of the base PR.
IFS='-' read -ra split <<< "${{ github.ref_name }}"
# Split Mergify's ref name (e.g. 'heads/pull/*/mergify/bp/stable/0.25/pr-10828') on the
# final '-' to get the number of the PR that triggered Mergify.
IFS='-' read -ra split <<< "${{ github.event.pull_request.head.ref }}"
base_pr=${split[-1]}
gh pr --repo "${{ github.repository }}" view "$base_pr" --json labels,milestone > base_pr.json
Expand Down

0 comments on commit 0b7b379

Please sign in to comment.