Skip to content

Can't release because commit does not validate with commitlint #219

Open
@satazor

Description

@satazor

Using,

    "@commitlint/cli": "^5.0.0",
    "@commitlint/config-angular": "^5.0.0",

with standard version, fails with:

husky > npm run -s commitmsg (node v8.4.0)

⧗   input: chore(release): 1.0.0
✖   subject must not be sentence-case, start-case, pascal-case, upper-case [subject-case]
✖   type must be one of [build, ci, docs, feat, fix, perf, refactor, revert, style, test] [type-enum]
✖   found 2 problems, 0 warnings

husky > commit-msg hook failed (add --no-verify to bypass)

Command failed: git commit CHANGELOG.md package.json package-lock.json -m "chore(release): 1.0.0"
husky > npm run -s precommit (node v8.4.0)

Running tasks for *.js [started]
Running tasks for *.js [skipped]
→ No staged files match *.js
husky > npm run -s commitmsg (node v8.4.0)

⧗   input: chore(release): 1.0.0
✖   subject must not be sentence-case, start-case, pascal-case, upper-case [subject-case]
✖   type must be one of [build, ci, docs, feat, fix, perf, refactor, revert, style, test] [type-enum]
✖   found 2 problems, 0 warnings

Perhaps the type and message need to be adjusted?

//cc @marionebl @bcoe

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions