diff options
Diffstat (limited to 'tools/check-commits.sh')
| -rwxr-xr-x | tools/check-commits.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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." |
