test: verify MiniMax M2.5 PR review workflow #8
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] | |
| branches: [main] | |
| issue_comment: | |
| types: [created] | |
| pull_request_review_comment: | |
| types: [created] | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| issues: write | |
| id-token: write | |
| jobs: | |
| auto-review: | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| concurrency: | |
| group: claude-review-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: anthropics/claude-code-action@v1 | |
| env: | |
| ANTHROPIC_BASE_URL: https://api.minimax.io/anthropic | |
| with: | |
| anthropic_api_key: ${{ secrets.MINIMAX_API_KEY }} | |
| show_full_output: true | |
| prompt: | | |
| Review this pull request and always leave a review comment on the PR summarizing your findings. | |
| Even if the changes are minor, post a brief comment acknowledging the review. | |
| Focus on: | |
| 1. Code correctness and potential bugs | |
| 2. TypeScript type safety | |
| 3. React best practices and performance | |
| 4. Security concerns | |
| 5. Code style consistency | |
| Be concise and actionable. Only comment on meaningful issues, not style nitpicks already covered by linters. | |
| claude_args: "--model MiniMax-M2.5 --max-turns 3" | |
| interactive: | |
| if: | | |
| (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) || | |
| (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| concurrency: | |
| group: claude-interactive-${{ github.event.issue.number || github.event.pull_request.number }}-${{ github.event.comment.id }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: anthropics/claude-code-action@v1 | |
| env: | |
| ANTHROPIC_BASE_URL: https://api.minimax.io/anthropic | |
| with: | |
| anthropic_api_key: ${{ secrets.MINIMAX_API_KEY }} | |
| claude_args: "--model MiniMax-M2.5 --max-turns 10" |