mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
chore: limit scope of commit messages to dozen characters
This commit is contained in:
parent
0da1a2fd8b
commit
34aa9051e3
|
@ -105,6 +105,9 @@ The scope could be anything specifying place of the commit change. For example
|
|||
`$location`, `$browser`, `$compile`, `$rootScope`, `ngHref`, `ngClick`,
|
||||
`ngView`, etc.
|
||||
|
||||
Since people were abusing length of the scope, it's limited to 12 characters.
|
||||
If you're running into the limit, you're doing it wrong.
|
||||
|
||||
#### Subject
|
||||
The subject contains succinct description of the change:
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ echo "" # ← formatting
|
|||
|
||||
# Conform, /OR ELSE/.
|
||||
if git log --format=format:'%s' "$ARG" | \
|
||||
grep -v -E '^((feat|fix|docs|style|refactor|perf|revert|test|chore)(\(.+\))?:.{1,68})|(Merge pull request #[[:digit:]]{1,10})$'
|
||||
grep -v -E '^((feat|fix|docs|style|refactor|perf|revert|test|chore)(\(.{,12}\))?:.{1,68})|(Merge pull request #[[:digit:]]{1,10})$'
|
||||
then
|
||||
echo ""
|
||||
echo "Above ↑ commits don't conform to commit message format:"
|
||||
|
|
Loading…
Reference in New Issue
Block a user