Allow newsfragments to end with exclamation marks! (#4912)

This commit is contained in:
Richard van der Hoff authored and GitHub committed 2019-03-21 15:28:19 +00:00
1 parent a68e00fca8
commit 224783a73f
2 files changed
+3 -2

No files matched your search

+2 -2
View File
@@ -31,8 +31,8 @@ echo
# check that any new newsfiles on this branch end with a full stop.
for f in `git diff --name-only FETCH_HEAD... -- changelog.d`; do
lastchar=`tr -d '\n' < $f | tail -c 1`
if [ $lastchar != '.' ]; then
echo -e "\e[31mERROR: newsfragment $f does not end with a '.'\e[39m" >&2
if [ $lastchar != '.' -a $lastchar != '!' ]; then
echo -e "\e[31mERROR: newsfragment $f does not end with a '.' or '!'\e[39m" >&2
exit 1
fi
done