Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the concurrency label for the add-changelog-snippet workflow #42

Merged
merged 3 commits into from
Nov 10, 2023

Conversation

jwodder
Copy link
Member

@jwodder jwodder commented Nov 10, 2023

Because the workflow triggers on pull_request_target rather than pull_request, github.ref_name will be the name of the base branch (i.e., "master", "maint", or "main"), which means that, if multiple PRs with a CHANGELOG-missing label are opened in quick succession, all but one of the add-changelog-snippet workflows for the PRs as a group will be cancelled, which is not want we want. We want the cancellation to only kick in if multiple runs are started on the same PR at once (which happens if a PR is created with multiple labels), so the concurrency label should use a string that is specific to the head (source) of the PRs.

@jwodder jwodder added patch Increment the patch version when merged CHANGELOG-missing When a PR does not contain add a changelog item, yet labels Nov 10, 2023
@github-actions github-actions bot removed the CHANGELOG-missing When a PR does not contain add a changelog item, yet label Nov 10, 2023
@jwodder jwodder merged commit 2d854a7 into master Nov 10, 2023
15 checks passed
@jwodder jwodder deleted the fix-concurrency branch November 10, 2023 14:12
Copy link

PR released in v1.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant