From 4a9b6c986c66bc8cf7ec73ff21df2591c7149d99 Mon Sep 17 00:00:00 2001 From: Patrick Meyer Date: Thu, 6 May 2021 14:25:01 +0200 Subject: tools: allow [^A-Z] after : in commit message instead of [a-z] The old regexp choked on the following commit message, which we should allow according to dvyukov@: pkg/cover/backend: [symbStart, symbEnd) is a half-closed range --- tools/check-commits.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/check-commits.sh b/tools/check-commits.sh index b83031e02..f0bfa8b63 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} =~ ^(Revert \"|(([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