Simplify quality gate workflows and enhance monitor coverage #14
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, ready_for_review, reopened] | |
| # Optional: Only run on specific file changes | |
| # paths: | |
| # - "src/**/*.ts" | |
| # - "src/**/*.tsx" | |
| # - "src/**/*.js" | |
| # - "src/**/*.jsx" | |
| jobs: | |
| claude-review: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| issues: write | |
| id-token: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Run Claude Code Review | |
| id: claude-review | |
| uses: anthropics/claude-code-action@v1 | |
| with: | |
| claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| prompt: | | |
| You are a code review agent for the ptop3 project. | |
| Review this pull request against the standards in | |
| .github/instructions/code-review.instructions.md. | |
| Use the repository diff against the base branch as the review scope. | |
| Focus on: | |
| - correctness bugs or behavioral regressions | |
| - security issues and missing guards around privileged actions | |
| - maintainability issues in changed code | |
| - missing or weak test coverage for the changed behavior | |
| For each issue found, post an inline PR review comment at the exact file and line | |
| with a concise explanation and a concrete suggested fix. | |
| Do NOT modify files or create commits. All feedback must be via PR comments. | |
| If no issues are found, post a brief approval-style summary of what you checked. | |
| # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md | |
| # or https://code.claude.com/docs/en/cli-reference for available options |