Skip to content

fix(review): allow concurrent reviews + restore post-comment checkbox + review gate - #110

Merged
TakumaLee merged 1 commit into
mainfrom
fix/review-109-rebased
May 2, 2026
Merged

TakumaLee merged 1 commit into
mainfrom
fix/review-109-rebased

Conversation

@TakumaLee

Copy link
Copy Markdown
Owner

Rebased version of #109 on top of merged #108.

Changes

  • Allow concurrent reviews (remove single-active guard, add cancelPtr identity token)
  • Restore post_comment checkbox — only auto-post when checked
  • Add checkReviewGate: skip re-review when last comment is not from PR author and no new commit
  • postReviewComment: add context.Context for timeout enforcement
  • fetchReviewDiff: restore validateReviewHost SSRF guard

Closes

Closes #109

… + review gate

- Allow multiple concurrent reviews (remove single-active guard, add
  cancelPtr identity token so /cancel aborts only the most recent)
- Restore PostComment boolean: auto-post as PR/MR comment only when
  the checkbox is checked, not on every review
- Add checkReviewGate: skip re-review when last comment is not from
  PR author and no new commit — prevents redundant reviewer loops
- postReviewComment: add context.Context param for timeout enforcement
- fetchReviewDiff: restore validateReviewHost SSRF guard

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@TakumaLee
TakumaLee merged commit a4eca81 into main May 2, 2026
0 of 2 checks passed
@TakumaLee
TakumaLee deleted the fix/review-109-rebased branch May 2, 2026 09:28
TakumaLee added a commit that referenced this pull request May 2, 2026
…iew_test.go

Signature changed in PR #110 to accept context.Context but test calls weren't updated.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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