From f3efea60a8e7609967592e07e782684623cd9397 Mon Sep 17 00:00:00 2001 From: Joe C Date: Wed, 4 Dec 2024 12:59:35 +0900 Subject: [PATCH] update (#55) --- .github/actions/backport/action.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/actions/backport/action.yml b/.github/actions/backport/action.yml index 928793e3..b455368f 100644 --- a/.github/actions/backport/action.yml +++ b/.github/actions/backport/action.yml @@ -23,7 +23,6 @@ runs: MERGE_COMMIT=${{ github.sha }} echo "MERGE_COMMIT=$MERGE_COMMIT" >> $GITHUB_ENV - # Find the pull request associated with the squashed merge commit. echo "Looking for PR associated with commit $MERGE_COMMIT... with label ${{ inputs.label }}" PR=$(gh pr list --state merged --json number,title,headRefName,mergeCommit,labels \ --jq ".[] | select(.mergeCommit.oid == \"$MERGE_COMMIT\" and (.labels[].name | contains(\"${{ inputs.label }}\")))") @@ -52,18 +51,15 @@ runs: git fetch --all - # Create a new branch off the specified base branch. BASE_BRANCH="${{ inputs.base_branch }}" BACKPORT_BRANCH="backport-${{ env.PR_NUMBER }}-to-${{ inputs.base_branch }}" git checkout $BASE_BRANCH git checkout -b $BACKPORT_BRANCH - # Cherry-pick the merge commit. git cherry-pick $MERGE_COMMIT || (git cherry-pick --abort && exit 1) git push origin $BACKPORT_BRANCH - # Create a pull request. gh pr create \ --base $BASE_BRANCH \ --head $BACKPORT_BRANCH \