ci(workflow): add concurrency blocks to prevent duplicate runs (#135)

Add concurrency control to all review workflows:
- opencode-review.yml: Cancel in-progress for same PR
- claude-code-review.yml: Cancel in-progress for same PR
- claude.yml: Cancel in-progress for same issue/PR

This prevents duplicate reviews when PRs are updated rapidly
or multiple comments are posted in quick succession.

Co-authored-by: Test User <test@example.com>
This commit is contained in:
Frank Bria 2026-01-28 10:22:45 -07:00 committed by GitHub
parent 7df4750f22
commit 0bd260df68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 15 additions and 0 deletions

View file

@ -11,6 +11,11 @@ on:
- ".gitignore"
- "pyproject.toml"
# Cancel in-progress runs for the same PR to avoid duplicate reviews
concurrency:
group: opencode-review-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
opencode-review:
runs-on: ubuntu-latest