Skip to content

Commit 07e1e86

Browse files
committed
fix: use reviewer-scoped concurrency key for review-submission runs
Give pull_request_review runs a per-reviewer concurrency slot (reviewer-removal-{PR}-{login}) so simultaneous review submissions from multiple reviewers are not cancelled by each other. Signed-off-by: Mounil Kanakhara <mounilkankhara@gmail.com>
1 parent 86df148 commit 07e1e86

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/on-review.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ jobs:
2525
runs-on: hl-sdk-py-lin-md
2626

2727
concurrency:
28-
group: reviewer-assignee-${{ github.event.pull_request.number || inputs.pr_number || github.run_id }}
28+
group: >-
29+
${{
30+
github.event_name == 'pull_request_review'
31+
&& format('reviewer-removal-{0}-{1}', github.event.pull_request.number, github.event.review.user.login)
32+
|| format('reviewer-assignee-{0}', github.event.pull_request.number || inputs.pr_number || github.run_id)
33+
}}
2934
cancel-in-progress: false
3035

3136
steps:

0 commit comments

Comments
 (0)