From f94b533a4b8d84b61facdcb97e4f1fb343393ceb Mon Sep 17 00:00:00 2001 From: Marco Elver Date: Thu, 6 Aug 2020 09:11:14 +0200 Subject: tools/check-commits: allow canonical 'git revert' format Allow the canonical 'git revert' format. --- tools/check-commits.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/check-commits.sh b/tools/check-commits.sh index aa06eed5a..42cd72d95 100755 --- a/tools/check-commits.sh +++ b/tools/check-commits.sh @@ -23,7 +23,7 @@ for HASH in ${HASHES}; do ((COMMITS+=1)) SUBJECT=$(git show --format="%s" --no-patch ${HASH}) BODY=$(git show --format="%B" --no-patch ${HASH}) - if ! [[ ${SUBJECT} =~ ^(([a-z0-9/_.-]+|Makefile|CONTRIBUTORS|README.md)(, )?)+:\ [a-z].+[^.]$ ]]; then + if ! [[ ${SUBJECT} =~ ^(Revert \"|(([a-z0-9/_.-]+|Makefile|CONTRIBUTORS|README.md)(, )?)+:\ [a-z].+[^.]$) ]]; then echo "##[error]Wrong commit subject format: '${SUBJECT}'.\ Please use 'main/affected/package: short change description'.\ See docs/contributing.md for details." -- cgit mrf-deployment