From 3742a76cfba1c0e82737c3a741c36313a3ebf978 Mon Sep 17 00:00:00 2001 From: snomiao Date: Wed, 29 Oct 2025 11:05:37 +0000 Subject: [PATCH] [fix] Use current branch as PR base when triggered by push event MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Set PR base to current branch (github.ref_name) when triggered by push - Keeps main as base for workflow_run triggers - Allows testing on feature branches without conflicts with main 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/release-api-changelogs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-api-changelogs.yaml b/.github/workflows/release-api-changelogs.yaml index 10c5aca66e..e03a92a72d 100644 --- a/.github/workflows/release-api-changelogs.yaml +++ b/.github/workflows/release-api-changelogs.yaml @@ -189,7 +189,7 @@ jobs: --- 🤖 Generated with [Claude Code](https://claude.com/claude-code) branch: api-changelog-v${{ steps.current_version.outputs.version }} - base: main + base: ${{ github.event_name == 'push' && github.ref_name || 'main' }} labels: documentation delete-branch: true draft: true