-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a workflow which automatically adds backport tags based upon chan…
…gelogs (#2454) ##### SUMMARY 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: - On "push" or applying the `mergeit` label - If a PR contains **non-backportable** changes (`major_changes`, `breaking_changes`, `removed_features`) the `do_not_backport` label 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 applied `backport-*` labels. - When the "mergeit" label is applied: - If a PR contains changes that only need a **minor release** (minor_changes, deprecated_features) the `backport-9` label will be applied. - If a PR contains changes that only need a **patch release**, such as security/bug fixes (bugfixes, security_fixes), then `backport-8` and `backport-9` labels will both be applied. ##### ISSUE TYPE - Feature Pull Request ##### COMPONENT NAME .github/workflows ##### ADDITIONAL INFORMATION
- Loading branch information
Showing
2 changed files
with
53 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
name: mergeit-backport | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- labeled | ||
- opened | ||
- synchronize | ||
branches: | ||
- main | ||
|
||
jobs: | ||
changelog-labeller: | ||
uses: ansible-network/github_actions/.github/workflows/backport-labeller.yml@main | ||
with: | ||
label_minor_release: backport-9 | ||
label_bugfix_release: backport-8 |
This file contains 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