chore: Add security section to release notes (#5636)

This commit is contained in:
Mathias Fredriksson
2023-01-09 19:57:42 +00:00
committed by GitHub
parent eb8d5b4408
commit 68324c7263
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -45,6 +45,9 @@ main() {
breaking_label=release/breaking
breaking_category=breaking
# Security related changes are labeled `security`.
security_label=security
# Get abbreviated and full commit hashes and titles for each commit.
mapfile -t commits < <(git log --no-merges --pretty=format:"%h %H %s" "$range")
@@ -100,6 +103,9 @@ main() {
COMMIT_METADATA_CATEGORY[$commit_sha_short]=$breaking_category
COMMIT_METADATA_BREAKING=1
continue
elif [[ ${labels[$commit_sha_long]} = *"label:$security_label"* ]]; then
COMMIT_METADATA_CATEGORY[$commit_sha_short]=$security_label
continue
fi
if [[ $commit_prefix =~ $prefix_pattern ]]; then