mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[task/git-tools] Adjust the hook to enforce that a ticket is always mentioned
PHPBB3-9768
This commit is contained in:
parent
db13dc2d43
commit
a9046e5608
1 changed files with 2 additions and 2 deletions
|
@ -157,7 +157,7 @@ do
|
||||||
# Successful match, but on which line format
|
# Successful match, but on which line format
|
||||||
case $expect in
|
case $expect in
|
||||||
"header")
|
"header")
|
||||||
expecting="empty eof";
|
expecting="empty";
|
||||||
|
|
||||||
echo "$line" | grep -Eq "^\[ticket/[0-9]+\]$" && (
|
echo "$line" | grep -Eq "^\[ticket/[0-9]+\]$" && (
|
||||||
ticket=$(echo "$line" | sed 's,\[ticket/\([0-9]*\)\].*,\1,');
|
ticket=$(echo "$line" | sed 's,\[ticket/\([0-9]*\)\].*,\1,');
|
||||||
|
@ -174,7 +174,7 @@ do
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
"description")
|
"description")
|
||||||
expecting="description empty eof";
|
expecting="description empty";
|
||||||
in_description=1;
|
in_description=1;
|
||||||
;;
|
;;
|
||||||
"footer")
|
"footer")
|
||||||
|
|
Loading…
Add table
Reference in a new issue