Questions tagged [commitizen]

When you git commit with Commitizen, you'll be prompted to fill out any required commit fields at commit time.

When you commit with Commitizen, you'll be prompted to fill out any required commit fields at commit time. No more waiting until later for a git commit hook to run and reject your commit (though that can still be helpful). No more digging through CONTRIBUTING.md to find what the preferred format is. Get instant feedback on your commit message formatting and be prompted for required fields.

Commitizen is often used with semantic-release to ensure that conventional commits are used to help release software quickly and with auto generated changelogs.

30 questions
1
vote
0 answers

Commitizen and husky seem to be triggering the pre-commit hook twice

I am trying to configure commitizen with husky and when I commit using a custom script from package.json commit gets triggered twice. This is not the case when I try to run git commit though. Opened the issue on github but if anyone knows any…
Alien128
  • 313
  • 1
  • 2
  • 18
1
vote
0 answers

git commitizen does not work after installation

I have a problem with git cz. I installed it following *Conventional commit messages as a global utility * and then when I hit git cz everything works but wen I reopen my terminal and hit again git cz the comes up `git: 'cz' is not a git command.…
Daniel
  • 153
  • 2
  • 12
1
vote
1 answer

lint-staged + commitizen configuration suitable for command-line and Intellij

I'm trying to build such a configuration which would work for both command line and Intellij. Here is a part of my package.json "config": { "commitizen": { "path": "cz-conventional-changelog" } }, "husky": { "hooks": { "pre-commit":…
humkins
  • 9,635
  • 11
  • 57
  • 75
1
vote
0 answers

npm install PATH for postinstall scripts on Jenkins

My JS project uses a NPM package called commitizen: https://github.com/commitizen/cz-cli commitizen is added to my devDependencies in package.json file. commitizen uses internally a package called opencollective as you can see here:…
gabric
  • 1,865
  • 2
  • 21
  • 32
1
vote
1 answer

What Commitizen type should I use for a change that is an improvemant for an existing feature?

Here are the Commitizen types: What Commitizen type should I use for a change that is an improvement for an existing feature? CZ resources : http://commitizen.github.io/cz-cli/ https://github.com/commitizen/cz-cli
Rémi Becheras
  • 14,902
  • 14
  • 51
  • 81
0
votes
0 answers

Is it possible to make cz-customizable questions required?

I use the cz-customizable package to have conventional commits in the project; I use a customized configuration file named .cz-customize.js, and I've changed some defaults too. Is it possible to make the questions required, or is there any option…
siavash bashiri
  • 420
  • 1
  • 5
  • 18
0
votes
0 answers

standard streams in git hook when running commitizen

i have a prepare-commit-msg git hook that performs runs interactively. it works well when git commit is executed, but when committing using commitizen the prepare-commit-msg git hook does not show any output and thus cannot be used…
Mr.
  • 9,429
  • 13
  • 58
  • 82
0
votes
0 answers

Commitizen with 4 number versions?

Is it possible to use commitizen to automatically bump a version format like this: vX.Y.Z.& (eg. v2.23.3.9)? It is used as vX. + semver, essentially a "major-major" version on top (here v2), for business needs. It is never updated unless for…
Automatico
  • 12,420
  • 9
  • 82
  • 110
0
votes
1 answer

Github Action fails: 'git-lfs' is not on your path

I am using the following Github action: name: Python application on: push: branches: [ "master" ] permissions: contents: read jobs: bump_version: if: "!startsWith(github.event.head_commit.message, 'bump:')" runs-on:…
Tlaloc-ES
  • 4,825
  • 7
  • 38
  • 84
0
votes
0 answers

After running git revert commitizen doesn't create new tag

After running git revert cz bump doesn't create a new tag. Output = increment detected: None It should create a new tag. Commitizen version 2.18.0 Python 3.8
0
votes
1 answer

error: pathspec 'commit' did not match any file(s) known to git when using commitizen

Now I want to using commitizen to commit the git repo in linux Ubuntu 20.04.4 LTS , first install the commitizen(Node v16.14.2): npm install -g commitizen when I commit code using commitizen like this: cz commit show error like this: error:…
Dolphin
  • 29,069
  • 61
  • 260
  • 539
0
votes
0 answers

Emoji not showing up in commit with git cz

I have a angular project with the following package.json. I am using commitizen and git-cz along with husky for git commits. But can't get the emoji's to work in my repository. { "name": "test", "version": "0.0.0", "scripts": { "commit":…
victorjpe
  • 129
  • 1
  • 9
0
votes
1 answer

Jest and Commitizen: Commit works even if tests fail

I am currently using Jest, Husky, Commitizen, and Vuepress. However, when jest tests or the build fails, the commit hook still works. How can I fix this to exit the commitizen hook when things fail? Here is the relevant lines in package.json: { …
Staghouse
  • 167
  • 12
0
votes
1 answer

Use commitizen on a code-agnostic project

I would like to start incorporating commitizen in my repository; however, implementation seems to revolve around adding a js dependency on the repository, and calling it independently (and enforcing it with a hook). My project currently is python,…
Stavros
  • 154
  • 3
  • 11
0
votes
1 answer

Update to esLint on Angular breaks commitlint

I just updated an Angular 11 app to eslint and installed commitizen, commitlint, husky and semantic-release to drive CI through npm and Travis. I followed the instructions on the Angular recommended link. Linting itself works fine. The problem shows…
Chris Curnow
  • 643
  • 5
  • 15
1
2