mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 18:26:32 +02:00
[task/git-tools] Append ticket identifier to commit message prior to editing.
PHPBB3-9770
This commit is contained in:
@@ -30,5 +30,13 @@ branch="$(echo "$branch" | sed "s/refs\/heads\///g")"
|
||||
# * also make sure the branch name begins with bug/ or feature/
|
||||
if [ "$2" = "" ]
|
||||
then
|
||||
echo "[$branch] $(cat "$1")" > "$1"
|
||||
tail="";
|
||||
|
||||
# Branch is prefixed with 'ticket/', append ticket ID to message
|
||||
if [ "$branch" != "${branch##ticket/}" ];
|
||||
then
|
||||
tail="\n\nPHPBB3-${branch##ticket/}";
|
||||
fi
|
||||
|
||||
echo "[$branch]$tail $(cat "$1")" > "$1"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user