Skip to content
Snippets Groups Projects
Unverified Commit 224783a7 authored by Richard van der Hoff's avatar Richard van der Hoff Committed by GitHub
Browse files

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

parent a68e00fc
No related branches found
No related tags found
No related merge requests found
Allow newsfragments to end with exclamation marks. Exciting!
...@@ -31,8 +31,8 @@ echo ...@@ -31,8 +31,8 @@ echo
# check that any new newsfiles on this branch end with a full stop. # 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 for f in `git diff --name-only FETCH_HEAD... -- changelog.d`; do
lastchar=`tr -d '\n' < $f | tail -c 1` lastchar=`tr -d '\n' < $f | tail -c 1`
if [ $lastchar != '.' ]; then if [ $lastchar != '.' -a $lastchar != '!' ]; then
echo -e "\e[31mERROR: newsfragment $f does not end with a '.'\e[39m" >&2 echo -e "\e[31mERROR: newsfragment $f does not end with a '.' or '!'\e[39m" >&2
exit 1 exit 1
fi fi
done done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment