You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a way to skip the shared claude-review workflow for a given push, without disabling it on the repo.
Include [skip claude] (or [skip-claude], [claude skip], [claude-skip]) anywhere in the PR's most recent commit message and the review step is skipped. The match is case-insensitive and only the head commit is checked, so pushing a later commit without the marker re-enables review on the next run.
How it works
Checkout now uses fetch-depth: 2 so the PR head commit (not just the default merge commit) is reachable locally.
A new step reads the head commit message with git log and sets a skip output when the marker is present.
The Run Claude Code review step is gated on that output.
Validate skip-marker regex against documented markers
Check injection/security of head.sha interpolation
Confirm gating correctness and no regression to the review action
Summary
This is a clean, well-scoped change. The fetch-depth: 2 reasoning is correct: actions/checkout checks out the refs/pull/N/merge commit by default on pull_request events, and that merge commit's two parents are the base tip and github.event.pull_request.head.sha — so depth 2 makes the head commit reachable for the local git log read, with no gh api call. The regex \[(skip[ -]claude|claude[ -]skip)\] matches all four documented markers case-insensitively, the head.sha interpolation is a hex SHA so there's no shell-injection surface, and gating the review step on steps.skip_check.outputs.skip != 'true' is correct (and fails closed). The review action reads diffs via gh pr diff rather than local history, so the shallow checkout introduces no regression. The README accurately documents the head-commit-only, case-insensitive behavior. I found no issues that meet the bug-flagging bar and nothing actionable to raise beyond that.
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
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
Adds a way to skip the shared
claude-reviewworkflow for a given push, without disabling it on the repo.Include
[skip claude](or[skip-claude],[claude skip],[claude-skip]) anywhere in the PR's most recent commit message and the review step is skipped. The match is case-insensitive and only the head commit is checked, so pushing a later commit without the marker re-enables review on the next run.How it works
fetch-depth: 2so the PR head commit (not just the default merge commit) is reachable locally.git logand sets askipoutput when the marker is present.Run Claude Code reviewstep is gated on that output.README updated to document the marker.