1
0
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:
Zetok Zalbavar 2016-07-31 17:05:58 +01:00
parent 0da1a2fd8b
commit 34aa9051e3
No known key found for this signature in database
GPG Key ID: C953D3880212068A
2 changed files with 4 additions and 1 deletions

View File

@ -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:

View File

@ -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:"