aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtools/check-commits.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/check-commits.sh b/tools/check-commits.sh
index 512ce76ae..b08e87a61 100755
--- a/tools/check-commits.sh
+++ b/tools/check-commits.sh
@@ -33,7 +33,9 @@ for HASH in ${HASHES}; do
fi
LONGLINE='[^\
]{121}'
- if [[ ${BODY} =~ ${LONGLINE} ]]; then
+ # dependabot may generate descriptions longer than 120 chars
+ DEPENDABOT_SUBJ='^mod:\ bump'
+ if [[ ! ${SUBJECT} =~ ${DEPENDABOT_SUBJ} ]] && [[ ${BODY} =~ ${LONGLINE} ]] ; then
echo "##[error]Please limit commit description line length to 120 characters."
echo "${BODY}"
FAILED="1"