aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2023-10-29 16:32:54 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2023-10-29 16:32:54 +0000
commit42d5d8e43338d0b97cc922ff1d14b77f3ff9d448 (patch)
tree58dde435b9a9086946d392fa86ab1a26c3a35ad5 /tools
parentf685f9021bfaff71616efd8e83d114441e69701b (diff)
parentdbf14eee40bf6d7a4ce45605fc52c941013f7d4b (diff)
Merge branch 'release/2.6.x' into 'develop'
Mergeback 2.6.0 to develop See merge request pleroma/pleroma-fe!1862
Diffstat (limited to 'tools')
-rwxr-xr-xtools/collect-changelog27
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/collect-changelog b/tools/collect-changelog
new file mode 100755
index 00000000..1e12d564
--- /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/*