Simplify workflow concurrency groups to sequentialize per workflow#15030
Closed
Simplify workflow concurrency groups to sequentialize per workflow#15030
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix concurrency group for workflows to exclude issue number
Fix issue workflow concurrency groups to sequentialize per workflow
Feb 11, 2026
pelikhan
reviewed
Feb 11, 2026
pkg/workflow/concurrency.go
Outdated
| // Multiple runs on the same workflow queue sequentially | ||
| } else if isDiscussionWorkflow(workflowData.On) { | ||
| // Discussion workflows: use discussion number | ||
| keys = append(keys, "${{ github.event.discussion.number }}") |
| func buildConcurrencyGroupKeys(workflowData *WorkflowData, isCommandTrigger bool) []string { | ||
| keys := []string{"gh-aw", "${{ github.workflow }}"} | ||
|
|
||
| if isCommandTrigger { |
Contributor
There was a problem hiding this comment.
@copilot simplify the concurrency group setting: sequentialize per workflow. no special handling of other events.
Contributor
Author
There was a problem hiding this comment.
Done in 762cc13. All workflows now sequentialize per workflow name - removed special handling for PRs, push, discussions, etc. Only command triggers retain issue/PR context.
… name Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
Fix issue workflow concurrency groups to sequentialize per workflow
Simplify workflow concurrency groups to sequentialize per workflow
Feb 11, 2026
Contributor
|
@copilot command triggers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Workflow concurrency groups were using event-specific identifiers (issue numbers, PR numbers, git refs, discussion numbers), creating unnecessary complexity and preventing consistent sequential processing across all workflow types.
Changes
pkg/workflow/concurrency.go: Simplified concurrency logic to sequentialize all workflows per workflow name, removing special handling for different event types (issues, PRs, push, discussions)pkg/workflow/concurrency_test.go: Updated all test expectations to reflect simplified behaviordocs/src/content/docs/reference/concurrency.md: Updated documentation to reflect simplified patternsPattern
All workflows now use the same simple pattern:
Exception: Command triggers (slash_command) retain issue/PR context for proper isolation:
PR workflows retain
cancel-in-progress: truefor automatic cancellation when new commits are pushed.💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.