mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-25 08:14:12 +08:00
fix: properly handle base branch throughout the action workflow
- Fix TypeScript error where defaultBranch was used before being assigned - Replace DEFAULT_BRANCH with BASE_BRANCH in subsequent workflow steps - Update PR creation and branch comparison to use the actual base branch - Ensure custom base_branch input is respected in all operations 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -63,7 +63,12 @@ async function run() {
|
||||
|
||||
// Step 8: Setup branch
|
||||
const baseBranch = process.env.BASE_BRANCH;
|
||||
const branchInfo = await setupBranch(octokit, githubData, context, baseBranch);
|
||||
const branchInfo = await setupBranch(
|
||||
octokit,
|
||||
githubData,
|
||||
context,
|
||||
baseBranch,
|
||||
);
|
||||
|
||||
// Step 9: Update initial comment with branch link (only for issues that created a new branch)
|
||||
if (branchInfo.claudeBranch) {
|
||||
|
||||
Reference in New Issue
Block a user