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:
parent
43934e274f
commit
7ee4fda4f5
1 changed files with 1 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue