Skip to content

Commit b7026da

Browse files
committed
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>
1 parent fc20f97 commit b7026da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/check-commits.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ for HASH in ${HASHES}; do
2323
((COMMITS+=1))
2424
SUBJECT=$(git show --format="%s" --no-patch ${HASH})
2525
BODY=$(git show --format="%B" --no-patch ${HASH})
26-
PATTERN="^(Revert \"|(([a-z0-9/_.-]+|Makefile|CONTRIBUTORS|README.md)(, )?)+:\ [^A-Z].+[^.]$)"
26+
PATTERN="^(Revert \"|(([a-z0-9/_.-]+|Makefile|AUTHORS|CONTRIBUTORS|README.md)(, )?)+:\ [^A-Z].+[^.]$)"
2727
if ! [[ ${SUBJECT} =~ $PATTERN ]]; then
2828
echo "##[error]Wrong commit subject format: '${SUBJECT}'.\
2929
Please use 'main/affected/package: short change description'.\

0 commit comments

Comments
 (0)