|
4 | 4 | workflow_dispatch: |
5 | 5 | pull_request: |
6 | 6 | types: [opened, synchronize, ready_for_review, reopened] |
| 7 | + paths-ignore: |
| 8 | + - '.github/workflows/**' |
| 9 | + - '*.md' |
| 10 | + - 'docs/**' |
| 11 | + - 'demos/**' |
| 12 | + - 'experiments/**' |
| 13 | + - 'LICENSE' |
| 14 | + - '.tessl/**' |
| 15 | + - 'code_to_optimize/**' |
| 16 | + - 'codeflash.code-workspace' |
| 17 | + - 'uv.lock' |
7 | 18 | issue_comment: |
8 | 19 | types: [created] |
9 | 20 | pull_request_review_comment: |
|
23 | 34 | if: | |
24 | 35 | ( |
25 | 36 | github.event_name == 'pull_request' && |
26 | | - github.actor != 'claude[bot]' && |
| 37 | + github.event.sender.login != 'claude[bot]' && |
27 | 38 | github.event.pull_request.head.repo.full_name == github.repository |
28 | 39 | ) || |
29 | 40 | github.event_name == 'workflow_dispatch' |
|
77 | 88 | Post all review findings in a single summary comment only — never as inline PR review comments. |
78 | 89 | </commitment> |
79 | 90 |
|
| 91 | + <step name="triage"> |
| 92 | + Before doing any work, assess the PR scope: |
| 93 | +
|
| 94 | + 1. Run `gh pr diff ${{ github.event.pull_request.number }} --name-only` to get changed files. |
| 95 | + 2. Classify as TRIVIAL if ALL changed files are: |
| 96 | + - Config/CI files (.github/, .tessl/, *.toml, *.lock, *.json, *.yml, *.yaml) |
| 97 | + - Documentation (*.md, docs/) |
| 98 | + - Non-production code (demos/, experiments/, code_to_optimize/) |
| 99 | + - Only whitespace, formatting, or comment changes |
| 100 | +
|
| 101 | + If TRIVIAL: post a single comment "No substantive code changes to review." and stop — do not execute any further steps. |
| 102 | + Otherwise: continue with the full review below. |
| 103 | + </step> |
| 104 | +
|
80 | 105 | <step name="lint_and_typecheck"> |
81 | 106 | Run checks on files changed in this PR and auto-fix what you can. |
82 | 107 |
|
|
0 commit comments