From 92f769024685a174f7b40c7c1752b2ffff45bbf3 Mon Sep 17 00:00:00 2001 From: hatajoe Date: Fri, 10 Apr 2026 10:43:30 +0900 Subject: [PATCH] feat: Add source-branch input to create-release-pr-for-gem action --- .github/actions/create-release-pr-for-gem/action.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/actions/create-release-pr-for-gem/action.yml b/.github/actions/create-release-pr-for-gem/action.yml index 1371173..74f3aef 100644 --- a/.github/actions/create-release-pr-for-gem/action.yml +++ b/.github/actions/create-release-pr-for-gem/action.yml @@ -19,6 +19,10 @@ inputs: pre-release: description: Whether the release is a pre-release default: false + source-branch: + required: false + description: Branch to scan for commits. Defaults to base-branch if not specified. + default: "" runs: using: "composite" @@ -27,7 +31,7 @@ runs: uses: actions/checkout@v4 with: fetch-depth: 2 - ref: ${{ inputs.base-branch }} + ref: ${{ inputs.source-branch || inputs.base-branch }} token: ${{ env.GITHUB_TOKEN }} - name: Conventional Changelog Action id: changelog @@ -36,7 +40,7 @@ runs: preset: conventionalcommits skip-version-file: true output-file: false - git-branch: ${{ inputs.base-branch }} + git-branch: ${{ inputs.source-branch || inputs.base-branch }} git-push: false skip-commit: true skip-tag: true