mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 12:28:52 +00:00
Merge pull request #2608 from dhruvgoel92/ticket/12720
[ticket/12720] Allow commit heading to begin with lowercase letters * dhruvgoel92/ticket/12720: [ticket/12720] Allow commit heading to begin with lowercase letters
This commit is contained in:
commit
d2aee6d2ea
1 changed files with 2 additions and 2 deletions
|
@ -191,12 +191,12 @@ do
|
||||||
err=$ERR_HEADER;
|
err=$ERR_HEADER;
|
||||||
echo "$line" | grep -Eq "^\[(ticket/[0-9]+|feature/$branch_regex|task/$branch_regex)\] .+$"
|
echo "$line" | grep -Eq "^\[(ticket/[0-9]+|feature/$branch_regex|task/$branch_regex)\] .+$"
|
||||||
result=$?
|
result=$?
|
||||||
if ! echo "$line" | grep -Eq "^\[(ticket/[0-9]+|feature/$branch_regex|task/$branch_regex)\] [A-Z].+$"
|
if ! echo "$line" | grep -Eq "^\[(ticket/[0-9]+|feature/$branch_regex|task/$branch_regex)\] [a-zA-Z].+$"
|
||||||
then
|
then
|
||||||
# Don't be too strict.
|
# Don't be too strict.
|
||||||
# Commits may be temporary, intended to be squashed later.
|
# Commits may be temporary, intended to be squashed later.
|
||||||
# Just issue a warning here.
|
# Just issue a warning here.
|
||||||
complain "$severity: heading should be a sentence beginning with a capital letter." 1>&2
|
complain "$severity: heading should be a sentence beginning with a letter." 1>&2
|
||||||
complain "You entered:" 1>&2
|
complain "You entered:" 1>&2
|
||||||
complain "$line" 1>&2
|
complain "$line" 1>&2
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue