question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Understanding: usage with commitlint

See original GitHub issue

I am already using commitlint with conventional commits in my project to lint my commit messages as part of husky commit-msg githook.

I also want to have the ability to prompt users for correctly format messages while they are committing instead of checking before the actual commit, which commitlint enables with commitlint prompt Ofcourse, commitizen enables this as well with

"config": {
    "commitizen": {
      "path": "path/to/adapter"
    }
  },

Is there any benefit of using commitizen if I am using commitlint already?

Or, would it make sense to only use commitizen?

Does commitizen provide a commit-msg hook? as i would like to still lint my git commit messages if a user does not follow the prompt that commitizen provides for commit.

Assuming I do get some benefits by using both commitizen and commitlint, would it be better for me to use the commitlint adapter with config-conventional or cz-conventional-changelog?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
gaurav5430commented, May 24, 2020

@castarco I don’t have any issues with making the setup work with cz-conventional-changelog and commitlint with husky, my question is more to understand whether I should be using cz-conventional-changelog at all if I am already using commitlint, should I just use the commitlint adapter instead of cz-conventional-changelog? And further, should I even use commitizen at all if I am already using commitlint? Can I not just use the commitlint prompt to setup a commit script same as git-cz, is there a benefit one approach provides over the other?

0reactions
Axedysoncommented, Aug 24, 2021

How does cz-conventional-changelog use the commitlint config?

I would like to know that too

Read more comments on GitHub >

github_iconTop Results From Across the Web

commitlint - Lint commit messages
Guides - Common use cases explained in a step-by-step pace; Concepts - Overarching topics important to understand the use of commitlint; Reference -...
Read more >
How to Write Good Commit Messages with Commitlint
Commitlint is a simple tool that lints your commit messages and makes sure they follow a set of rules. It runs as a...
Read more >
Commitlint: Write more organized code - LogRocket Blog
We often start by navigating the source code to understand how it was built and how components within the application interact with each...
Read more >
Commitlint: validate commit conventions automatically
Convention configuration. Commitlint is just a tool for checking if your messages follow your conventions. It does not for you to use a...
Read more >
Standardize commit messages using commitlint | by Luka O
( like on every action ) you can use husky for that. So if we combine Husky and Commitlint we will automatize our...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found