🏷️ A CLI tool for generating opinionated commit messages with issue/ticket #'s
- Standardize your commits!
- Keep a consistent link between your issue tracking and your work!
- Create more meaningful commit messages!
- No more typing
git commit -m
!
Install globally to run from the command line or locally to be used as a script in your project:
npm install -g tagged-commits
or
npm install --save-dev tagged-commits
If you are using NPM 5.2+ you can use
npx
instead of installing globally:
npx tc
Run tagged-commits from the command line by typing tc
, or add it to a script in your package.json:
"scripts": {
"tc": "tc"
}
You'll be prompted to answer a few questions about your commit. If you follow a branch naming convention of [branch type]/[prefix]-[ticket #]
(ex: feature/TC-42
), it will automatically parse the ticket information for you, otherwise you can add it manually.
After entering your commit message information, it will display a preview of your commit message. If everything looks good, you can confirm and the code will be committed for you!
If you've noticed a bug or have a feature you'd like to suggest, please feel free to open a GitHub Issue. If you would like to contribute to the project, feel free to fork this repo, create a new branch & open a pull request.
MIT