Skip to content

refactor: simplify code-review workflow and add pre-commit hooks - #2

Merged
isuttell merged 4 commits into
mainfrom
refactor/consolidate-reaction-steps
Dec 7, 2025
Merged

isuttell merged 4 commits into
mainfrom
refactor/consolidate-reaction-steps

Conversation

@isuttell

@isuttell isuttell commented Dec 7, 2025

Copy link
Copy Markdown
Contributor

Summary

Simplifies the code-review workflow by removing redundant context gathering and consolidates CI checks into pre-commit hooks.

Changes

  • Simplified code-review.yml by removing pre-gathered PR context (workflow runs, check runs) - Claude can fetch this on-demand via gh CLI
  • Streamlined the review prompt to be more concise and focused
  • Added pre-commit hooks for linting and formatting (trailing whitespace, YAML validation, prettier, actionlint)
  • Updated CLAUDE.md with pre-commit setup instructions
  • Fixed grammar: "do not like read" → "do not like to read"

Risk Assessment

LOW

Changed Areas

  • .github/workflows/code-review.yml - Workflow simplification
  • CLAUDE.md - Documentation updates
  • Pre-commit configuration

Security Considerations

None - no auth, secrets, or data handling changes.

Performance Impact

Workflow should run faster with less pre-gathering of context that may not be needed.

Breaking Changes

NO

isuttell and others added 4 commits December 7, 2025 12:05
Merge "React on success" and "React on failure" steps into a single
"React to completion" step that uses job.status to determine the emoji.

Also includes:
- Add trigger_type input for auto vs comment-triggered reviews
- Add gh run list to allowed tools
- Update README with auto-trigger documentation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Consolidate actionlint and prettier checks into a single pre-commit step.
This ensures CI uses the same checks as local development.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Change 'do not like read' to 'do not like to read'
@isuttell
isuttell merged commit cfbf987 into main Dec 7, 2025
1 check passed
@isuttell
isuttell deleted the refactor/consolidate-reaction-steps branch December 7, 2025 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant