aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAndrew Donnellan <ajd@linux.ibm.com>2025-12-10 14:14:19 +1100
committerAleksandr Nogikh <nogikh@google.com>2025-12-10 05:39:39 +0000
commit48b27acc3f460d39422fea39527f62629d70e4a5 (patch)
tree08f1840dafc399b8467d48ea37626e0b8382cdfb /tools
parent5b5f646079e8abe6d9b1f550aaf0e837b2f5ea13 (diff)
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 <ajd@linux.ibm.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/check-commits.sh2
1 files changed, 1 insertions, 1 deletions
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'.\