Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/roziscoding/commit-me
Git commit CLI based on https://gist.github.com/gustavopch/506a0651657b48e38a014a067e6bd221
https://github.com/roziscoding/commit-me
Last synced: 2 months ago
JSON representation
Git commit CLI based on https://gist.github.com/gustavopch/506a0651657b48e38a014a067e6bd221
- Host: GitHub
- URL: https://github.com/roziscoding/commit-me
- Owner: roziscoding
- Created: 2021-05-29T22:43:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-26T14:17:47.000Z (over 3 years ago)
- Last Synced: 2024-09-12T04:12:49.567Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 126 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## commitme
> Based on [this gist](https://gist.github.com/gustavopch/506a0651657b48e38a014a067e6bd221) by @gustavopch
# Installation
You can install this on your package using `npm i -D commitme` or run it once using `npx commitme`
# Configuration
Create a `.commitrc` on the root of your project to customize the choices.
## VSCode Support
Add this to your VSCode config file in order to get autocomplete for the config file:
```json
{
"files.associations": {
".commitrc": "jsonc"
},
"json.schemas": [
{
"fileMatch": [".commitrc"],
"url": "https://raw.githubusercontent.com/roziscoding/commit-me/main/config-schema.json"
}
]
}
```## Options
- `choices`:
- The list of commit types
- Type: Array of [inquirer](https://www.npmjs.com/package/inquirer) choices for the `list` prompt type
The `name` must be the commit type description, and the `value` must be an emoji- `replaceDefaultChoices`:
- If true, the default choices will not be used
- Type: boolean### Command line
- `-a`: Runs `git add --all` before commiting
- `--print`: Prints the commit message, instead of caling git (will ignore the `-a` flag)
# Contributors
- @roziscoding: Creator of this package
- @gustavopch: Creator of [the gist that allowed this package to exist](https://gist.github.com/gustavopch/506a0651657b48e38a014a067e6bd221)