31 questions
0
votes
0
answers
27
views
How to run script interactively on Mac
I am trying to get husky to launch commitizen in a pre-commit hook. Works fine on Linux. On Mac, not so much.
#!/bin/bash
exec < /dev/tty && cz commit || true
It looks like polling is ...
0
votes
1
answer
458
views
commitizen - how to run commit check in gitlab ci
I'm using a commitizen and a pre-commit
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.27.0
hooks:
- id: commitizen
name: commit message check
On local everything is ...
0
votes
1
answer
173
views
standard-version not counting features correctly
I'm using conventional-changelog's standard-version to manage semantic versioning and generate my CHANGELOG.md in my application.
I've already made my first release, which means my app's version is ...
1
vote
2
answers
5k
views
Problem with Commitizen Bump When I'm trying to generate my version with commitizen
In my python project, I was asked to use commitizen. And then they asked me to generate and update the changelog.
I did it the first time and it worked.
But now I had a problem.
When I'm trying to ...
0
votes
0
answers
585
views
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 ...
4
votes
1
answer
2k
views
How to automate version bump with main branch protection rules without PAT?
My team has multiple low level and high level packages written in Python and they are dependent on each other, we typically install them as GitHub repositories using pip. Basically, I would like to ...
1
vote
1
answer
1k
views
Configure commitizen to bump a default version
Can we configure commitizen command
cz bump
to bump to a default version (i.e. PATCH ) if there is no commit bump_pattern (i.e. ^(break|new|fix|hotfixi)) in the commit message?
This is the part in ...
0
votes
1
answer
987
views
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(...
2
votes
2
answers
2k
views
How can I reference var from section into another section in pyproject.toml?
Hello I am building a pyproject object and I have the following two sections
[tool.poetry]
version = "0.1.0"
[tool.commitizen]
version = "0.1.0"
As you can see poetry uses the ...
1
vote
2
answers
712
views
Can Commitizen update pom.xml file?
I am working on a Java project and I'm using commitizen to enforce semantic version in CI, when I run the command cz bump and cz changelog update the .cz.yaml and changelog files with the new version ...
7
votes
1
answer
2k
views
How can I keep poetry and commitizen versions synced?
I have a pyproject.toml with
[tool.poetry]
name = "my-project"
version = "0.1.0"
[tool.commitizen]
name = "cz_conventional_commits"
version = "0.1.0"
I add a ...
1
vote
1
answer
1k
views
commitizen: No commit found with range: 'origin/HEAD..HEAD'
I've recently started using commitizen in my day-to-day development, however I don't understand why I get the following error with the first commit to a new branch, ie:
...on current main branch...
...
1
vote
1
answer
708
views
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 ...
1
vote
0
answers
2k
views
Commitizen in gitlab pipeline
I have to run Commitizen (cz bump) in gitlab pipeline. The problem is that firstly I have to run cz init and answer some questions. It is not possible in Pipeline. I received an error:
$ cz bump
[...
1
vote
0
answers
1k
views
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 ...
0
votes
0
answers
1k
views
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": &...
0
votes
1
answer
341
views
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? ...
7
votes
0
answers
1k
views
Commitizen in command line: Is there a way to go back to a previous field?
I'm using the npm package commitizen for my git commits. Great tool.
Upon running cz: Whenever I fill some fields, and then realise I want to make a change before submitting, I have to Ctrl+C and ...
0
votes
1
answer
589
views
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 ...
2
votes
1
answer
938
views
Commitizen Non Interactive is bringing up interactive mode
I am able to use commitizen with interactive mode as expected. However in non-interactive mode is not functioning.
git-cz --non-interactive --type=feat --subject="add onClick prop to component&...
0
votes
1
answer
406
views
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 ...
3
votes
2
answers
1k
views
How to globally uninstall an npm package commitizen?
I'm trying to uninstall a globally installed NPM package named commitizen.
I have tried executing the command below, however; the command fails to return any results.
npm uninstall -g commitizen
I ...
1
vote
0
answers
1k
views
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 ...
5
votes
1
answer
2k
views
use git's prepare-commit-msg hook during an interactive rebase
In a lerna/yarn monorepo, we use commitizen and cz-conventional-changelog to manage releases. We use husky to lint commit messages in the commit-msg hook and run the commitizen cli in the prepare-...
1
vote
1
answer
2k
views
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"
...
5
votes
2
answers
2k
views
How to define Commitizen adapter when using "npx git-cz"?
I am trying to adopt a conventional commits like standard to my projects. While searching for linters and other automation tools I stumbled upon commitizen.
I want to use it in my project without ...
1
vote
0
answers
2k
views
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 ...
6
votes
2
answers
8k
views
Commitizen: Is there a way to override standard `git commit`?
Any commitizen users here?
Wanted behavior:
install commitizen
run git commit
see the same nice menu as when running git cz
Current behavior:
install commitizen
run git commit
NO nice menu as when ...
2
votes
1
answer
3k
views
Can't commit when combining commitizen + husky: nvm is not compatible with the "npm_config_prefix" environment variable
I have a project that was using commitizen without problems. I've decided to add husky to run precommit hooks with prettier. The problem is that when I run the npm run cm command, I get this error...
...
4
votes
2
answers
2k
views
how to make commitizen override default git commit command
I am currently creating custom script to run commitizen commit command by doing npm run commit but I want to just let it over ride the default git commit with npm run commit somehow..... So anyone ...
1
vote
1
answer
650
views
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/...