Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/pr-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,24 @@ permissions:
concurrency:
# Event-triggered and mention-triggered runs for a specific PR get a per-PR
# concurrency slot so they never queue behind unrelated PRs.
# check_suite events carry the associated PR in pull_requests[0]; including
# that URL here prevents cross-PR cancellation when multiple PRs' CI suites
# complete simultaneously (each PR competes only with itself, which is safe
# since same-PR runs are idempotent on the same head SHA).
# Note: check_suite.pull_requests entries expose the API `url` field, not
# `html_url` — using `url` here matches the payload shape.
# Manual batch runs (workflow_dispatch without pr_url) use a shared slot.
group: >-
${{
(inputs.pr_url
|| github.event.client_payload.pr_url
|| github.event.pull_request.html_url)
|| github.event.pull_request.html_url
|| github.event.check_suite.pull_requests[0].url)
&& format('pr-review-pr-{0}',
inputs.pr_url
|| github.event.client_payload.pr_url
|| github.event.pull_request.html_url)
|| github.event.pull_request.html_url
|| github.event.check_suite.pull_requests[0].url)
|| 'pr-review-batch'
}}
cancel-in-progress: false
Expand Down
Loading