diff options
| author | Marcin Mikołajczak <git@mkljczk.pl> | 2023-11-08 20:46:57 +0100 |
|---|---|---|
| committer | Marcin Mikołajczak <git@mkljczk.pl> | 2023-11-08 20:46:57 +0100 |
| commit | 1e9333a9aa5f15dd9cbea826ee42561e4a9d12c3 (patch) | |
| tree | 923fa49e845b97b99c65855de3113b444253e10c /tools/collect-changelog | |
| parent | c6cedbb8106a16527e48ac8ae03907e1d66c5a1b (diff) | |
| parent | a51f3937eef0c6add91234863d5f936c59830d88 (diff) | |
| download | pleroma-1e9333a9aa5f15dd9cbea826ee42561e4a9d12c3.tar.gz pleroma-1e9333a9aa5f15dd9cbea826ee42561e4a9d12c3.zip | |
Merge remote-tracking branch 'origin/develop' into instance-v2
Diffstat (limited to 'tools/collect-changelog')
| -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/* |
