forked from greenbone/openvas-scanner
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds function to automatically add release labels based on a configuration.
- Loading branch information
1 parent
3da335c
commit 84f72c8
Showing
3 changed files
with
45 additions
and
5 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,20 @@ | ||
name: Labeler | ||
|
||
on: | ||
pull_request: | ||
|
||
permissions: | ||
pull-requests: write | ||
contents: read | ||
|
||
jobs: | ||
conventional-commits: | ||
name: Add release labels | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Report Conventional Commits | ||
uses: nichtsfrei/actions/pr-conventional-commit-labeler@v3 | ||
with: | ||
token: ${{ github.token }} | ||
configuration_toml: release_tag.toml | ||
|
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
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 @@ | ||
# the name functions as a key and should be unique. | ||
# The priority is used when only_highest_priority is set to true | ||
labels = [ | ||
{ name = "patch_release", priority = 1 }, | ||
{ name = "minor_release", priority = 2 }, | ||
{ name = "major_release", priority = 3 }, | ||
] | ||
|
||
# group within groups must be defined in `changelog.toml` | ||
# label within groups must be defined in `labels` | ||
groups = [ | ||
{ group = "Added", label = "minor_release" }, | ||
{ group = "Changed", label = "major_release" }, # maybe minor? | ||
{ group = "Removed", label = "major_release" }, # maybe minor? | ||
{ group = "Bug Fixes", label = "patch_reelase" }, | ||
] | ||
|
||
# when set to false all unique labels will be set | ||
# otherwise only one label with the highest priority | ||
# will be set | ||
only_highest_priority = true | ||
|