Skip to content

Commit f3efea6

Browse files
authored
update (#55)
1 parent 02adabe commit f3efea6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

.github/actions/backport/action.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ runs:
2323
MERGE_COMMIT=${{ github.sha }}
2424
echo "MERGE_COMMIT=$MERGE_COMMIT" >> $GITHUB_ENV
2525
26-
# Find the pull request associated with the squashed merge commit.
2726
echo "Looking for PR associated with commit $MERGE_COMMIT... with label ${{ inputs.label }}"
2827
PR=$(gh pr list --state merged --json number,title,headRefName,mergeCommit,labels \
2928
--jq ".[] | select(.mergeCommit.oid == \"$MERGE_COMMIT\" and (.labels[].name | contains(\"${{ inputs.label }}\")))")
@@ -52,18 +51,15 @@ runs:
5251
5352
git fetch --all
5453
55-
# Create a new branch off the specified base branch.
5654
BASE_BRANCH="${{ inputs.base_branch }}"
5755
BACKPORT_BRANCH="backport-${{ env.PR_NUMBER }}-to-${{ inputs.base_branch }}"
5856
git checkout $BASE_BRANCH
5957
git checkout -b $BACKPORT_BRANCH
6058
61-
# Cherry-pick the merge commit.
6259
git cherry-pick $MERGE_COMMIT || (git cherry-pick --abort && exit 1)
6360
6461
git push origin $BACKPORT_BRANCH
6562
66-
# Create a pull request.
6763
gh pr create \
6864
--base $BASE_BRANCH \
6965
--head $BACKPORT_BRANCH \

0 commit comments

Comments
 (0)