diff options
| author | Taras Madan <tarasmadan@google.com> | 2025-07-04 12:07:17 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2025-07-04 10:39:17 +0000 |
| commit | 528e2a84d2ba91a865c1689c1372db12509bf115 (patch) | |
| tree | c90941c1f70705a110fcf490e452daf19667f76b /tools/check-commits.sh | |
| parent | 76ad128ce0cb38f6fb253e8afcc22a3205a506ca (diff) | |
tools: allow dependabot to commit long descriptions
Some dependencies update fail because of the len(descr_line)>120.
Diffstat (limited to 'tools/check-commits.sh')
| -rwxr-xr-x | tools/check-commits.sh | 4 |
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" |
