fix(maker): speed up mcp startup #343
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Claude Code Review | |
| on: | |
| pull_request: | |
| types: [opened, synchronize] | |
| issue_comment: | |
| types: [created] | |
| jobs: | |
| review: | |
| # Maker/release automation PRs are covered by dedicated CI guards; manual @claude | |
| # comments can still request a review when needed. | |
| if: | | |
| (github.event_name == 'pull_request' && | |
| !contains(github.event.pull_request.title, '(maker)') && | |
| !contains(github.event.pull_request.title, '(release)') && | |
| !startsWith(github.event.pull_request.title, 'ci(maker):') && | |
| !startsWith(github.event.pull_request.title, 'ci(release):')) || | |
| (github.event_name == 'issue_comment' && | |
| github.event.issue.pull_request && | |
| contains(github.event.comment.body, '@claude')) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| issues: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: anthropics/claude-code-action@v1 | |
| env: | |
| ANTHROPIC_BASE_URL: ${{ vars.ANTHROPIC_BASE_URL }} | |
| with: | |
| anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} | |
| use_sticky_comment: true | |
| claude_args: | | |
| --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(cat:*),Bash(grep:*),Bash(git diff:*),Bash(git log:*),Read,Glob,Grep" | |
| prompt: | | |
| Read CLAUDE.md for project conventions, then review this PR following docs/CODE_REVIEW.md | |
| for methodology, checklist, and output format. | |
| Use `gh pr diff` to get changes, verify findings with actual code before reporting. | |
| Post ONE PR comment using `gh pr comment` with the exact output format from docs/CODE_REVIEW.md. | |
| For 阻塞问题 and 警告, also add inline comments via | |
| `mcp__github_inline_comment__create_inline_comment` with `confirmed: true`. |