From 1f07584a663ed110710c80d3c88b23a93bf981a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Mon, 17 May 2021 22:10:52 +0700 Subject: 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 --- .github/workflows/build.yaml | 2 ++ 1 file changed, 2 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 1ea1da2e488..eb96a151c59 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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: -- cgit v1.2.3