Skip to content

feat: limit automated code review to max 2 runs per PR - #21

Closed
anuragk16 wants to merge 1 commit into
mainfrom
feat/adding-restictions-on-numberofrun
Closed

anuragk16 wants to merge 1 commit into
mainfrom
feat/adding-restictions-on-numberofrun

Conversation

@anuragk16

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a Check review run limit step before Claude runs
  • Tracks run count via PR labels (claude-review-run-1, claude-review-run-2)
  • Skips review once 2 runs are completed for a PR
  • Add claude-review-bypass label to any PR to skip the limit

Test plan

  • Open a PR — verify claude-review-run-1 label added, review runs
  • Push a commit to same PR — verify claude-review-run-2 label added, review runs
  • Push again — verify review is skipped
  • Add claude-review-bypass label — verify review runs regardless of count

🤖 Generated with Claude Code

Adds run-count tracking via PR labels (claude-review-run-1/2).
Skips review if 2 runs already completed. Supports bypass via
claude-review-bypass label for exceptions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot added the claude-review-run-1 Claude Code Review run 1 label Apr 18, 2026
@anuragk16 anuragk16 self-assigned this Apr 18, 2026
@anuragk16
anuragk16 marked this pull request as draft April 18, 2026 12:53
@anuragk16

Copy link
Copy Markdown
Collaborator Author

closing as this is wrong approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude-review-run-1 Claude Code Review run 1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant