refactor: consolidate reaction steps in code-review workflow - #1
Merged
Merged
Conversation
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>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Consolidate the success/failure reaction steps into a single step with conditional logic. Also includes support for automatic PR review triggers.
Changes
trigger_typeinput to distinguish comment-triggered vs automatic reviewsgh run listto allowed tools for better CI visibilityRisk Assessment
LOW - Refactoring workflow steps with equivalent functionality. No changes to core review logic.
Changed Areas
.github/workflows/code-review.yml- Reaction step consolidation and trigger_type supportREADME.md- Documentation updatesSecurity Considerations
None - no auth, secrets, or data handling changes.
Performance Impact
None - same number of API calls, just organized differently.
Breaking Changes
NO -
trigger_typedefaults tocommentmaintaining backward compatibility.🤖 Generated with Claude Code