From 528e2a84d2ba91a865c1689c1372db12509bf115 Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Fri, 4 Jul 2025 12:07:17 +0200 Subject: tools: allow dependabot to commit long descriptions Some dependencies update fail because of the len(descr_line)>120. --- tools/check-commits.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools') 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" -- cgit mrf-deployment