File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,9 @@ main() {
45
45
breaking_label=release/breaking
46
46
breaking_category=breaking
47
47
48
+ # Security related changes are labeled `security`.
49
+ security_label=security
50
+
48
51
# Get abbreviated and full commit hashes and titles for each commit.
49
52
mapfile -t commits < <( git log --no-merges --pretty=format:" %h %H %s" " $range " )
50
53
@@ -100,6 +103,9 @@ main() {
100
103
COMMIT_METADATA_CATEGORY[$commit_sha_short ]=$breaking_category
101
104
COMMIT_METADATA_BREAKING=1
102
105
continue
106
+ elif [[ ${labels[$commit_sha_long]} = * " label:$security_label " * ]]; then
107
+ COMMIT_METADATA_CATEGORY[$commit_sha_short ]=$security_label
108
+ continue
103
109
fi
104
110
105
111
if [[ $commit_prefix =~ $prefix_pattern ]]; then
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ mapfile -t commits < <(git log --no-merges --pretty=format:"%ct %h %s" "${old_ve
68
68
# NOTE(mafredri): These need to be supported in check_commit_metadata.sh as well.
69
69
declare -a section_order=(
70
70
breaking
71
+ security
71
72
feat
72
73
fix
73
74
docs
@@ -83,6 +84,7 @@ declare -a section_order=(
83
84
84
85
declare -A section_titles=(
85
86
[breaking]=' BREAKING CHANGES'
87
+ [security]=' SECURITY'
86
88
[feat]=' Features'
87
89
[fix]=' Bug Fixes'
88
90
[docs]=' Documentation'
You can’t perform that action at this time.
0 commit comments