Compare commits

..

1 Commits

Author SHA1 Message Date
graychoi
3dd3907798 fix: add model parameter support to base-action
- Add model field to ClaudeOptions type
- Pass ANTHROPIC_MODEL env var to runClaude function
- Handle --model argument in prepareRunConfig

This allows the model specified in action.yml to be properly passed
to the Claude CLI command.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-19 14:27:49 +09:00
3 changed files with 4 additions and 14 deletions

View File

@@ -193,8 +193,7 @@ runs:
# Run the base-action # Run the base-action
cd ${GITHUB_ACTION_PATH}/base-action cd ${GITHUB_ACTION_PATH}/base-action
bun install bun install
cd - bun run src/index.ts
bun run ${GITHUB_ACTION_PATH}/base-action/src/index.ts
env: env:
# Base-action inputs # Base-action inputs
CLAUDE_CODE_ACTION: "1" CLAUDE_CODE_ACTION: "1"

View File

@@ -694,7 +694,8 @@ What You CANNOT Do:
- Submit formal GitHub PR reviews - Submit formal GitHub PR reviews
- Approve pull requests (for security reasons) - Approve pull requests (for security reasons)
- Post multiple comments (you only update your initial comment) - Post multiple comments (you only update your initial comment)
- Execute commands outside the repository context${useCommitSigning ? "\n- Run arbitrary Bash commands (unless explicitly allowed via allowed_tools configuration)" : ""} - Execute commands outside the repository context
- Run arbitrary Bash commands (unless explicitly allowed via allowed_tools configuration)
- Perform branch operations (cannot merge branches, rebase, or perform other git operations beyond pushing commits) - Perform branch operations (cannot merge branches, rebase, or perform other git operations beyond pushing commits)
- Modify files in the .github/workflows directory (GitHub App permissions do not allow workflow modifications) - Modify files in the .github/workflows directory (GitHub App permissions do not allow workflow modifications)
- View CI/CD results or workflow run outputs (cannot access GitHub Actions logs or test results) - View CI/CD results or workflow run outputs (cannot access GitHub Actions logs or test results)

View File

@@ -116,11 +116,6 @@ export async function setupBranch(
`Branch name generated: ${newBranch} (will be created by file ops server on first commit)`, `Branch name generated: ${newBranch} (will be created by file ops server on first commit)`,
); );
// Ensure we're on the source branch
console.log(`Fetching and checking out source branch: ${sourceBranch}`);
await $`git fetch origin ${sourceBranch} --depth=1`;
await $`git checkout ${sourceBranch}`;
// Set outputs for GitHub Actions // Set outputs for GitHub Actions
core.setOutput("CLAUDE_BRANCH", newBranch); core.setOutput("CLAUDE_BRANCH", newBranch);
core.setOutput("BASE_BRANCH", sourceBranch); core.setOutput("BASE_BRANCH", sourceBranch);
@@ -136,12 +131,7 @@ export async function setupBranch(
`Creating local branch ${newBranch} for ${entityType} #${entityNumber} from source branch: ${sourceBranch}...`, `Creating local branch ${newBranch} for ${entityType} #${entityNumber} from source branch: ${sourceBranch}...`,
); );
// Fetch and checkout the source branch first to ensure we branch from the correct base // Create and checkout the new branch locally
console.log(`Fetching and checking out source branch: ${sourceBranch}`);
await $`git fetch origin ${sourceBranch} --depth=1`;
await $`git checkout ${sourceBranch}`;
// Create and checkout the new branch from the source branch
await $`git checkout -b ${newBranch}`; await $`git checkout -b ${newBranch}`;
console.log( console.log(