Commitizen adapter: fogoprobr custom rules
Project description
commitizen-cz-fogoprobr
Instalação
pip install commitizen-cz-fogoprobr
Uso
Listar commitizen instalados
cz ls
Commit de code em stage
cz --name cz_fogoprobr commit
Alternativamente, definindo o commitizen do projeto em um arquivo .cz do projeto
(echo [commitizen] & echo.name = cz_fogoprobr) >> .cz
cz commit
Requisitos
- commitizen
2.21.2
Autor
Joao Fogo (melatto.fogo@live.com)
How the template works
-
TYPESThe selectable commit “types” shown in the prompt. Each item has:
value: what goes into the message (feat,fix, …)name: the human-friendly label shown in the menu.
-
SCHEMA_PATTERNA regex Commitizen uses to validate and later parse each commit’s header.
Your pattern enforces:
<type>(<scope>)!: <subject>where:
type∈feat|fix|docs|refactor|perf|test|chorescopeis optional:(<something>)!is optional: marks a breaking changesubjectis free text after:
-
BUMP_PATTERN/BUMP_MAPTell
cz bumphow to compute the next version from commit history:- If a commit body/footer contains BREAKING CHANGE, → MAJOR
- If a header’s
typeis feat, →** MINOR** - If a header’s
typeis fix, → PATCH
-
CHANGELOG_PATTERN
Which commits are included in the changelog (your list of types).
-
CzFogoprobrmethods-
info()/example()/schema()→ used by help commands. -
schema_pattern()→ returns the regex above. -
questions()→ defines the interactive prompts shown by cz commit:- pick
type(fromTYPES) scope(optional)is_breaking(yes/no)subject(validated to be 5–72 chars)
- pick
-
message(answers)→ builds the final commit text:{type}({scope}){!}: {subject} -
subject(commit)→ how a line appears in changelog sections.
-
Quick command cheat-sheet
cz --name cz_fogoprobr info # show adapter info
cz --name cz_fogoprobr example # show an example commit
cz commit # guided commit using your prompts
cz check # validate messages in range
cz bump # compute and apply next version
cz changelog # regenerate CHANGELOG.md
cz ls # list available adapters (your plugin should appear)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file commitizen_cz_fogoprobr-2.0.0.tar.gz.
File metadata
- Download URL: commitizen_cz_fogoprobr-2.0.0.tar.gz
- Upload date:
- Size: 64.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09e73b2b290bfb6b60c3617be4d8f2c38a63198c7dd070c8c0f95aa02e23bd48
|
|
| MD5 |
c19937b05beafb4a8accbe4406be491f
|
|
| BLAKE2b-256 |
a2d09bd436868c874a1b4dc6f507af870843c143d190e21a2b0414e86c6417a8
|
File details
Details for the file commitizen_cz_fogoprobr-2.0.0-py3-none-any.whl.
File metadata
- Download URL: commitizen_cz_fogoprobr-2.0.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7347294733da47076b615e20c0469d93cd5e356125082c46205800d4570f2c0
|
|
| MD5 |
352d8ba07b620ce1eb60854f633a9282
|
|
| BLAKE2b-256 |
d3b4358f525a00442fbd4b7b47f8727731a0a0ef4e56a1e86914cdfeb0c04f41
|