Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Create committing rules for projects 🚀 auto bump versions ⬆️ and auto changelog generation 📂

License

NotificationsYou must be signed in to change notification settings

commitizen-tools/commitizen

 
 

Repository files navigation

GitHub Workflow StatusConventional CommitsPyPI Package latest releasePyPI Package download count (per month)Supported versionsConda VersionhomebrewCodecovpre-commit

Using commitizen cli


Documentation:https://commitizen-tools.github.io/commitizen/


About

Commitizen is release management tool designed for teams.

Commitizen assumes your team uses a standard way of committing rulesand from that foundation, it can bump your project's version, createthe changelog, and update files.

By default, commitizen usesconventional commits, but youcan build your own set of rules, and publish them.

Using a standardized set of rules to write commits, makes commits easier to read, and enforces writingdescriptive commits.

Features

  • Command-line utility to create commits with your rules. Defaults:Conventional commits
  • Bump version automatically usingsemantic versioning based on the commits.Read More
  • Generate a changelog usingKeep a changelog
  • Update your project's version files automatically
  • Display information about your commit rules (commands: schema, example, info)
  • Create your own set of rules and publish them to pip. Read more onCustomization

Requirements

Python3.9+

Git1.8.5.2+

Installation

Install commitizen in your system usingpipx (Recommended,https://pypa.github.io/pipx/installation/):

pipx ensurepathpipx install commitizenpipx upgrade commitizen

Install commitizen usingpip with--user flag:

pip install --user -U commitizen

Python project

You can add it to your local project using one of the following.

Withpip:

pip install -U commitizen

Withconda:

conda install -c conda-forge commitizen

With Poetry >= 1.2.0:

poetry add commitizen --group dev

With Poetry < 1.2.0:

poetry add commitizen --dev

macOS

viahomebrew:

brew install commitizen

Usage

Most of the time this is the only command you'll run:

cz bump

On top of that, you can use commitizen to assist you with the creation of commits:

cz commit

Read more in the sectionGetting Started.

Help

$ cz --helpusage: cz [-h] [--debug] [-n NAME] [-nr NO_RAISE] {init,commit,c,ls,example,info,schema,bump,changelog,ch,check,version} ...Commitizen is a cli tool to generate conventional commits.For more information about the topic go to https://conventionalcommits.org/optional arguments:  -h, --help            show thishelp message andexit  --config              the path of configuration file  --debug               use debug mode  -n NAME, --name NAME  use the given commitizen (default: cz_conventional_commits)  -nr NO_RAISE, --no-raise NO_RAISE                        comma separated error codes that won't rise error, e.g: cz -nr 1,2,3 bump. See codes at https://commitizen-                        tools.github.io/commitizen/exit_codes/commands:  {init,commit,c,ls,example,info,schema,bump,changelog,ch,check,version}    init                init commitizen configuration    commit (c)          create new commit    ls                  show available commitizens    example             show commit example    info                show information about the cz    schema              show commit schema    bump                bump semantic version based on the git log    changelog (ch)      generate changelog (note that it will overwrite existing file)    check               validates that a commit message matches the commitizen schema    version             get the version of the installed commitizen or the current project (default: installed commitizen)

Setting up bash completion

When using bash as your shell (limited support for zsh, fish, and tcsh is available), Commitizen can useargcomplete for auto-completion. For this argcomplete needs to be enabled.

argcomplete is installed when you install Commitizen since it's a dependency.

If Commitizen is installed globally, global activation can be executed:

sudo activate-global-python-argcomplete

For permanent (but not global) Commitizen activation, use:

register-python-argcomplete cz>>~/.bashrc

For one-time activation of argcomplete for Commitizen only, use:

eval"$(register-python-argcomplete cz)"

For further information on activation, please visit theargcomplete website.

Sponsors

These are our cool sponsors!

About

Create committing rules for projects 🚀 auto bump versions ⬆️ and auto changelog generation 📂

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors142

Languages


[8]ページ先頭

©2009-2025 Movatter.jp