Skip to main content

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

Autor

Joao Fogo (melatto.fogo@live.com)

How the template works

  • TYPES

    The 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_PATTERN

    A regex Commitizen uses to validate and later parse each commit’s header.

    Your pattern enforces:

    <type>(<scope>)!: <subject>
    

    where:

    • typefeat|fix|docs|refactor|perf|test|chore
    • scope is optional: (<something>)
    • ! is optional: marks a breaking change
    • subject is free text after :
  • BUMP_PATTERN / BUMP_MAP

    Tell cz bump how to compute the next version from commit history:

    • If a commit body/footer contains BREAKING CHANGE, → MAJOR
    • If a header’s type is feat, →** MINOR**
    • If a header’s type is fix, → PATCH
  • CHANGELOG_PATTERN

Which commits are included in the changelog (your list of types).

  • CzFogoprobr methods

    • info() / example() / schema() → used by help commands.

    • schema_pattern() → returns the regex above.

    • questions() → defines the interactive prompts shown by cz commit:

      1. pick type (from TYPES)
      2. scope (optional)
      3. is_breaking (yes/no)
      4. subject (validated to be 5–72 chars)
    • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

commitizen_cz_fogoprobr-2.0.0.tar.gz (64.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

commitizen_cz_fogoprobr-2.0.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

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

Hashes for commitizen_cz_fogoprobr-2.0.0.tar.gz
Algorithm Hash digest
SHA256 09e73b2b290bfb6b60c3617be4d8f2c38a63198c7dd070c8c0f95aa02e23bd48
MD5 c19937b05beafb4a8accbe4406be491f
BLAKE2b-256 a2d09bd436868c874a1b4dc6f507af870843c143d190e21a2b0414e86c6417a8

See more details on using hashes here.

File details

Details for the file commitizen_cz_fogoprobr-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for commitizen_cz_fogoprobr-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7347294733da47076b615e20c0469d93cd5e356125082c46205800d4570f2c0
MD5 352d8ba07b620ce1eb60854f633a9282
BLAKE2b-256 d3b4358f525a00442fbd4b7b47f8727731a0a0ef4e56a1e86914cdfeb0c04f41

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page