mirror of
https://github.com/markwylde/claude-code-gitea-action.git
synced 2026-02-20 02:22:49 +08:00
Attempt to make this work
This commit is contained in:
@@ -172,11 +172,19 @@ export class ClaudeExecutor {
|
||||
|
||||
// Build Claude Code command arguments
|
||||
const args = [
|
||||
"--file", promptFile,
|
||||
"--mcp-config", mcpConfigFile,
|
||||
"--model", this.config.model || "claude-3-7-sonnet-20250219"
|
||||
"-p", `@${promptFile}`
|
||||
];
|
||||
|
||||
// Add MCP config if available
|
||||
if (mcpConfigFile) {
|
||||
args.push("--mcp-config", mcpConfigFile);
|
||||
}
|
||||
|
||||
// Add model if specified
|
||||
if (this.config.model) {
|
||||
args.push("--model", this.config.model);
|
||||
}
|
||||
|
||||
// Add allowed tools if specified
|
||||
if (tools.allowed.length > 0) {
|
||||
args.push("--allowed-tools", tools.allowed.join(","));
|
||||
|
||||
Reference in New Issue
Block a user