Skip to content

fix(enforce-single-assignee): add concurrency group#52

Merged
drewr merged 1 commit intomainfrom
fix-enforce-single-assignee
Mar 6, 2026
Merged

fix(enforce-single-assignee): add concurrency group#52
drewr merged 1 commit intomainfrom
fix-enforce-single-assignee

Conversation

@drewr
Copy link
Copy Markdown
Contributor

@drewr drewr commented Mar 6, 2026

Summary

Adds a concurrency group to the enforce-single-assignee workflow to prevent duplicate comments when multiple assignees are added simultaneously.

Problem

As shown in #50 and #51, when multiple users are assigned at once, GitHub fires one assigned event per user. Each concurrent workflow run posted its own comment, resulting in duplicates.

Fix

concurrency:
  group: enforce-single-assignee-${{ github.event.issue.number }}

Runs are now serialized per issue. The first run removes all assignees and posts one comment. Subsequent queued runs see 0 assignees and exit immediately with no action.

Serializes workflow runs per issue so that when multiple `assigned`
events fire simultaneously, only the first run acts. Subsequent runs
see 0 assignees and exit early, preventing duplicate comments.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@drewr drewr changed the title Add concurrency group to prevent duplicate comments fix(enforce-single-assignee): add concurrency group to prevent duplicate comments Mar 6, 2026
@drewr drewr changed the title fix(enforce-single-assignee): add concurrency group to prevent duplicate comments fix(enforce-single-assignee): add concurrency group Mar 6, 2026
@drewr drewr merged commit 3e4b46c into main Mar 6, 2026
3 checks passed
@drewr drewr deleted the fix-enforce-single-assignee branch March 6, 2026 21:55
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.

2 participants