5
0
Fork 0
mirror of https://github.com/wagoid/commitlint-github-action.git synced 2025-11-07 16:06:56 +00:00

fix: update isDepsCommit to accept build type

This commit is contained in:
Philippe Boyd 2022-06-07 11:52:00 -04:00 committed by GitHub
parent 43934e274f
commit 7ee4fda4f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@ const bodyMaxLineLength = 100
const validateBodyMaxLengthIgnoringDeps = (parsedCommit) => {
const { type, scope, body } = parsedCommit
const isDepsCommit =
type === 'chore' && (scope === 'deps' || scope === 'deps-dev')
['chore', 'build'].includes(type) && ['deps', 'deps-dev'].includes(scope)
return [
isDepsCommit || !body || maxLineLength(body, bodyMaxLineLength),