From 9c6263a0511c6c063f4941af21f4e5c112be8360 Mon Sep 17 00:00:00 2001 From: sapphi-red Date: Fri, 28 Aug 2026 18:41:54 +0900 Subject: [PATCH] feat: allow `target-branch` option in release-pr-action --- action/release-pr/action.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/action/release-pr/action.yml b/action/release-pr/action.yml index 7d3228d..7786ce3 100644 --- a/action/release-pr/action.yml +++ b/action/release-pr/action.yml @@ -20,6 +20,10 @@ inputs: tag: description: Release tag required: true + target-branch: + description: Branch the release pull request targets + required: false + default: main version: description: Release version required: true @@ -36,6 +40,7 @@ runs: PACKAGE_PATH: ${{ inputs.package-path }} PR_BODY: ${{ inputs.pr-body }} TAG: ${{ inputs.tag }} + TARGET_BRANCH: ${{ inputs.target-branch }} VERSION: ${{ inputs.version }} run: | BRANCH="release-$PACKAGE_NAME-$VERSION-$GITHUB_RUN_ID" @@ -49,7 +54,7 @@ runs: git push -u "https://x-access-token:$GH_TOKEN@github.com/$GITHUB_REPOSITORY.git" HEAD gh pr create \ --assignee "$GITHUB_ACTOR" \ - --base main \ + --base "$TARGET_BRANCH" \ --head "$BRANCH" \ --title "release: $TAG" \ --body "$PR_BODY"