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
53cd197
commit 38892ed
Showing
2 changed files
with
25 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
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 = "minor_release" }, # maybe major? | ||
{ group = "Removed", label = "minor_release" }, # maybe major? | ||
{ group = "Bug Fix", label = "major_release" }, | ||
] | ||
|
||
# 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 | ||
|