common: add basic commit lint

Warn if:
* subject is longer than 50 characters

Error if:
* any lines are longer than 80 characters except it's footnotes
* second line is not blank
This commit is contained in:
Đoàn Trần Công Danh
2021-05-17 22:10:52 +07:00
committed by Đoàn Trần Công Danh
parent f507c73f32
commit 1f07584a66
2 changed files with 53 additions and 0 deletions

View File

@@ -21,6 +21,8 @@ jobs:
- run: common/travis/changed_templates.sh
- run: common/travis/fetch-xtools.sh
- run: common/travis/xlint.sh
# GitHub Action create a merge commit, ignore it
- run: common/scripts/lint-commits FETCH_HEAD HEAD^2
# Build changed packages.
build: