Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion .github/workflows/claude.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, ready_for_review, reopened]
paths-ignore:
- '.github/workflows/**'
- '*.md'
- 'docs/**'
- 'demos/**'
- 'experiments/**'
- 'LICENSE'
- '.tessl/**'
- 'code_to_optimize/**'
- 'codeflash.code-workspace'
- 'uv.lock'
issue_comment:
types: [created]
pull_request_review_comment:
Expand All @@ -23,7 +34,7 @@ jobs:
if: |
(
github.event_name == 'pull_request' &&
github.actor != 'claude[bot]' &&
github.event.sender.login != 'claude[bot]' &&
github.event.pull_request.head.repo.full_name == github.repository
) ||
github.event_name == 'workflow_dispatch'
Expand Down Expand Up @@ -77,6 +88,20 @@ jobs:
Post all review findings in a single summary comment only — never as inline PR review comments.
</commitment>

<step name="triage">
Before doing any work, assess the PR scope:

1. Run `gh pr diff ${{ github.event.pull_request.number }} --name-only` to get changed files.
2. Classify as TRIVIAL if ALL changed files are:
- Config/CI files (.github/, .tessl/, *.toml, *.lock, *.json, *.yml, *.yaml)
- Documentation (*.md, docs/)
- Non-production code (demos/, experiments/, code_to_optimize/)
- Only whitespace, formatting, or comment changes

If TRIVIAL: post a single comment "No substantive code changes to review." and stop — do not execute any further steps.
Otherwise: continue with the full review below.
</step>

<step name="lint_and_typecheck">
Run checks on files changed in this PR and auto-fix what you can.

Expand Down
Loading