workflow and actions for automatically labelling PRs based on changelog fragments #165
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.
Originally written for amazon.aws: ansible-collections/amazon.aws#2454
As has been recently noticed, we're being inconsistent with backporting things.
Based on the keys from the changelog fragments this action would perform the following actions:
mergeitlabelmajor_changes,breaking_changes,removed_features) thedo_not_backportlabel will be applied. These change types are assumed to require a "major" release, and as such shouldn't be backported into a currently "stable" release. At the same time it will remove any previously appliedbackport-*labels.backport-9label will be applied.backport-8andbackport-9labels will both be applied.the labels to apply are configurable, and a (temporary) example of the workflow can be found at https://github.com/tremble/amazon.aws/blob/39c297ed743c1b0eb81dd93c3f531b3ba9492918/.github/workflows/backports.yml and tremble/amazon.aws#11