diff options
author | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2023-04-05 07:53:11 +0000 |
---|---|---|
committer | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2023-04-05 07:53:11 +0000 |
commit | b7a831ca55415424702968b95f6838d238dc0001 (patch) | |
tree | 90778b2d067143eb83a7ebd67088a8cb51568dd3 /tools | |
parent | 78a6f56295998e501e2f87d13a0a3c3917b4d70a (diff) | |
parent | 686c3e03bd6c13e732e95d2f81cc4bcd0acf015a (diff) | |
download | pleroma-b7a831ca55415424702968b95f6838d238dc0001.tar.gz pleroma-b7a831ca55415424702968b95f6838d238dc0001.zip |
Merge branch 'from/upstream-develop/tusooa/require-changelog' into 'develop'
require changelog
See merge request pleroma/pleroma!3739
Diffstat (limited to 'tools')
-rw-r--r-- | tools/check-changelog | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/check-changelog b/tools/check-changelog new file mode 100644 index 000000000..b94b52755 --- /dev/null +++ b/tools/check-changelog @@ -0,0 +1,22 @@ +#!/bin/sh + +echo "looking for change log of $CI_MERGE_REQUEST_IID" + +count=0 +for i in add remove fix security skip; do + [ -f changelog.d/"$CI_MERGE_REQUEST_IID"."$i" ] + retcode=$? + if [ $retcode -eq 0 ]; then + echo "found $CI_MERGE_REQUEST_IID.$i" + count=$(( count + 1 )) + else + echo "no $CI_MERGE_REQUEST_IID.$i" + fi +done +if [ $count -gt 0 ]; then + echo "ok" + exit 0 +else + echo "must have a changelog entry or explicitly skip it" + exit 1 +fi |