summary refs log tree commit diff
path: root/scripts-dev
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2019-03-21 15:28:19 +0000
committerGitHub <noreply@github.com>2019-03-21 15:28:19 +0000
commit224783a73f9c438d6fdf041a336749c6ae336bb2 (patch)
tree2ce6b522d9976f0a8beb9382350ca216fabfc51c /scripts-dev
parentSome more porting to HomeserverTestCase and remove old RESTHelper (#4913) (diff)
downloadsynapse-224783a73f9c438d6fdf041a336749c6ae336bb2.tar.xz
Allow newsfragments to end with exclamation marks! (#4912)
Diffstat (limited to 'scripts-dev')
-rwxr-xr-xscripts-dev/check-newsfragment4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts-dev/check-newsfragment b/scripts-dev/check-newsfragment
index e0ac84198e..0ec5075e79 100755
--- a/scripts-dev/check-newsfragment
+++ b/scripts-dev/check-newsfragment
@@ -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