aboutsummaryrefslogtreecommitdiffstats
path: root/git-tools/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'git-tools/hooks')
-rwxr-xr-xgit-tools/hooks/prepare-commit-msg7
1 files changed, 7 insertions, 0 deletions
diff --git a/git-tools/hooks/prepare-commit-msg b/git-tools/hooks/prepare-commit-msg
index 033cb187c7..ab01f49b5a 100755
--- a/git-tools/hooks/prepare-commit-msg
+++ b/git-tools/hooks/prepare-commit-msg
@@ -32,3 +32,10 @@ if [ "$2" = "" ]
then
echo "[$branch] $(cat "$1")" > "$1"
fi
+
+if (echo $branch | grep '^ticket/')
+then
+ ticket_id="$(echo $branch | sed "s/ticket\///g")"
+ echo >> "$1"
+ echo "PHPBB3-$ticket_id" >> "$1"
+fi