common/lint-commits: catch non-conventional subject
This commit is contained in:
parent
d2c28cc5bd
commit
dc6adc808f
1 changed files with 1 additions and 0 deletions
|
@ -38,6 +38,7 @@ do
|
||||||
(NF > 2) && (length > 80) { print C ": long line: " $0; exit 1 }
|
(NF > 2) && (length > 80) { print C ": long line: " $0; exit 1 }
|
||||||
!subject {
|
!subject {
|
||||||
if (length > 50) { print C ": subject is a bit long" }
|
if (length > 50) { print C ": subject is a bit long" }
|
||||||
|
if (!($0 ~ ":" || $0 ~ "^Take over maintainership " || $0 ~ "^Orphan ")) { print C ": subject does not follow CONTRIBUTING.md guildelines" }
|
||||||
# Below check is too noisy?
|
# Below check is too noisy?
|
||||||
# if (!($0 ~ "^New package:" || $0 ~ ".*: update to")) {
|
# if (!($0 ~ "^New package:" || $0 ~ ".*: update to")) {
|
||||||
# print C ": not new package/update/removal?"
|
# print C ": not new package/update/removal?"
|
||||||
|
|
Loading…
Add table
Reference in a new issue