mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-23 06:54:13 +08:00
fix: remove experimental-review mode reference from MCP config
The inline comment server configuration was checking for deprecated 'mode' field. Since review mode is removed in v1.0, this conditional block is no longer needed.
This commit is contained in:
@@ -111,23 +111,6 @@ export async function prepareMcpConfig(
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// Include inline comment server for experimental review mode
|
|
||||||
if (context.inputs.mode === "experimental-review" && context.isPR) {
|
|
||||||
baseMcpConfig.mcpServers.github_inline_comment = {
|
|
||||||
command: "bun",
|
|
||||||
args: [
|
|
||||||
"run",
|
|
||||||
`${process.env.GITHUB_ACTION_PATH}/src/mcp/github-inline-comment-server.ts`,
|
|
||||||
],
|
|
||||||
env: {
|
|
||||||
GITHUB_TOKEN: githubToken,
|
|
||||||
REPO_OWNER: owner,
|
|
||||||
REPO_NAME: repo,
|
|
||||||
PR_NUMBER: context.entityNumber?.toString() || "",
|
|
||||||
GITHUB_API_URL: GITHUB_API_URL,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
// Only add CI server if we have actions:read permission and we're in a PR context
|
// Only add CI server if we have actions:read permission and we're in a PR context
|
||||||
const hasActionsReadPermission =
|
const hasActionsReadPermission =
|
||||||
|
|||||||
Reference in New Issue
Block a user