Skip to content

Commit 68324c7

Browse files
authored
chore: Add security section to release notes (#5636)
1 parent eb8d5b4 commit 68324c7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

scripts/release/check_commit_metadata.sh

+6
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ main() {
4545
breaking_label=release/breaking
4646
breaking_category=breaking
4747

48+
# Security related changes are labeled `security`.
49+
security_label=security
50+
4851
# Get abbreviated and full commit hashes and titles for each commit.
4952
mapfile -t commits < <(git log --no-merges --pretty=format:"%h %H %s" "$range")
5053

@@ -100,6 +103,9 @@ main() {
100103
COMMIT_METADATA_CATEGORY[$commit_sha_short]=$breaking_category
101104
COMMIT_METADATA_BREAKING=1
102105
continue
106+
elif [[ ${labels[$commit_sha_long]} = *"label:$security_label"* ]]; then
107+
COMMIT_METADATA_CATEGORY[$commit_sha_short]=$security_label
108+
continue
103109
fi
104110

105111
if [[ $commit_prefix =~ $prefix_pattern ]]; then

scripts/release/generate_release_notes.sh

+2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ mapfile -t commits < <(git log --no-merges --pretty=format:"%ct %h %s" "${old_ve
6868
# NOTE(mafredri): These need to be supported in check_commit_metadata.sh as well.
6969
declare -a section_order=(
7070
breaking
71+
security
7172
feat
7273
fix
7374
docs
@@ -83,6 +84,7 @@ declare -a section_order=(
8384

8485
declare -A section_titles=(
8586
[breaking]='BREAKING CHANGES'
87+
[security]='SECURITY'
8688
[feat]='Features'
8789
[fix]='Bug Fixes'
8890
[docs]='Documentation'

0 commit comments

Comments
 (0)