diff options
author | tusooa <tusooa@kazv.moe> | 2023-10-25 20:44:47 -0400 |
---|---|---|
committer | tusooa <tusooa@kazv.moe> | 2023-10-25 20:45:23 -0400 |
commit | 6a13c2d180177692b976b179f0bd86f8f93e2803 (patch) | |
tree | 036db6d9dea9d78da075a2a6cc6f4bae0704e790 /tools | |
parent | a2a69709b51692be307940c79d0befdd3c9678bb (diff) | |
download | pleroma-6a13c2d180177692b976b179f0bd86f8f93e2803.tar.gz pleroma-6a13c2d180177692b976b179f0bd86f8f93e2803.zip |
Add collect-changelog script
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/collect-changelog | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/collect-changelog b/tools/collect-changelog new file mode 100755 index 000000000..1e12d5640 --- /dev/null +++ b/tools/collect-changelog @@ -0,0 +1,27 @@ +#!/bin/sh + +collectType() { + local suffix="$1" + local header="$2" + local printed=0 + for file in changelog.d/*."$suffix"; do + if [ '!' -f "$file" ]; then + continue + fi + if [ "$printed" = 0 ]; then + echo + echo "### $header" + printed=1 + fi + # Normalize any trailing newlines/spaces, etc. + echo "- $(cat "$file")" + done +} + +collectType security Security +collectType change Changed +collectType add Added +collectType fix Fixed +collectType remove Removed + +rm changelog.d/* |