From 48b27acc3f460d39422fea39527f62629d70e4a5 Mon Sep 17 00:00:00 2001 From: Andrew Donnellan Date: Wed, 10 Dec 2025 14:14:19 +1100 Subject: tools/check-commits.sh: allow AUTHORS as a prefix in commit message summaries Currently, the commit message summary line regex in check-commits.sh allows CONTRIBUTORS but not AUTHORS. Add AUTHORS. Signed-off-by: Andrew Donnellan --- 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 b08e87a61..1d982370b 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}) - PATTERN="^(Revert \"|(([a-z0-9/_.-]+|Makefile|CONTRIBUTORS|README.md)(, )?)+:\ [^A-Z].+[^.]$)" + PATTERN="^(Revert \"|(([a-z0-9/_.-]+|Makefile|AUTHORS|CONTRIBUTORS|README.md)(, )?)+:\ [^A-Z].+[^.]$)" if ! [[ ${SUBJECT} =~ $PATTERN ]]; then echo "##[error]Wrong commit subject format: '${SUBJECT}'.\ Please use 'main/affected/package: short change description'.\ -- cgit mrf-deployment