switch to shared pr label enforcers, add bugfix only action #9673
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.
Motivation
We have several repositories where we want to enforce some label constraints on PRs.
This PR migrates these actions to shared workflows in https://github.com/localstack/meta.
These actions are only executed on newly created PRs. The actions will only be triggered if the labels on a PR are changed.
So we still have to watch out for PRs which have already been created!
Changes
pr-enforce-no-major-master.yml
pr-enforce-pr-labels.yml
major
norminor
labels are on the PR:pr-enforce-no-major-minor-master.yml
.Testing
TODO
pr-enforce-no-major-master.yml
, such that only thepr-enforce-no-major-minor-master.yml
is active (which enforces our current restriction on not merging minor changes until we release the next bugfix release).