ccommit
v3.0.8
Published
π β π π° ccommit Conventional Commit Generator that interprets commit types from gitmoji and conventional
Downloads
534
Maintainers
Readme
π β π π° ccommit
ccommit
is a conventional commit generator that interprets commit types from gitmoji
through conventional-commits
to propose a bridged gap through multiple formats.
For developers that use gitmoji
it is not always possible to do so in every project. However, to keep workflows the same it would be ideal to introduce a configuration that would provide standards to applications while having some modicum of βfun.β
This can hook into your release system to create release notes.
π Note: This package is ESM
Usage
Local
Install as a devDependencies
:
# pnpm
pnpm add ccommit --save-dev
π Note: This is my preference as I try to limit globals wherever possible.
Global
# pnpm
pnpm add ccommit --global
π Note: For non-node projects this can be helpful, but again, try to limit globals.
Client
Call directly after staging files
# local
pnpm ccommit -c
# global
ccommit -c
π Note: Choose
local
orglobal
Hook
Add this to your prepare-commit-msg
for git
:
exec < /dev/tty
# local
pnpm ccommit --hook || true
# global
ccommit --hook || true
π Note: Choose
local
orglobal
Options
β² packages [main] pnpm ccommit -h
Conventional Commit Generator that interprets commit types from gitmoji and conventional
Usage
$ ccommit -c
Flags
--breaking, -b π₯ Breaking Change
--commit, -c π½ Mode: Client
--dryrun, -n π½ Mode: Dry Run
--emoji, -e π Emoji (default)
--hook, -u πͺ Mode: Hook
--list, -l π List all types
--version, -v π¦ Print installed version
Options
--format π Commit Format: conventional|gitmoji (default)
--message π Commit Message
--scope π¬ Commit Scope
--title π Commit Title
--type β¨ Commit Type
Notes
- Pass any non-format options the following will be required: --title, --type
- If you do not pass any options the Conventional Commit Generator prompt will run
- Branch Name detection is enabled to pre-populate Issue Tracker information in prompt
Formats
Gitmoji
- π gitmoji
- π§ͺ Examples
- β¨ (scope) ABC-123 subject
- π (github) subject
- π subject
Conventional
- π conventional
- a mapping of
gitmoji
to what could be construed as itβs more in-depthconventional
counterparts - can pass
--noemoji|-xe
and turn emojis off withinconventional
- a mapping of
- π§ͺ Examples
- feat(scope): β¨ ABC-123 subject
- fix-ci(github): π subject
- fix: π subject
Roadmap
This was meant to sunset @jeromefitz/git-cz
as a year-end personal hackathon. This will keep up with gitmoji
and ideally some tenets of βbest of both worldsβ could make it to gitmoji-cli
some day. (There are a few closed issues on βboringβ versions already, and with this using enquirer
probably less and less of a chance.)
As a result it is a mash-up of both and I have tried to add references where applicable:
- π
gitmoji-cli
- π
@jeromefitz/git-cz