An open API service indexing awesome lists of open source software.

https://github.com/jondotsoy/commit-help

Command helper to create commit
https://github.com/jondotsoy/commit-help

commit git

Last synced: about 2 months ago
JSON representation

Command helper to create commit

Awesome Lists containing this project

README

        

# Commit-Help

[![Node.js Package](https://github.com/JonDotsoy/commit-help/actions/workflows/npm_publish.yml/badge.svg)](https://github.com/JonDotsoy/commit-help/actions/workflows/npm_publish.yml)

Features:

- Shell alias `feat`: helper to commit a feature `feat(scope): ` or `feat: `
- Shell alias `fix`: helper to commit a fix `fix(scope): ` or `fix: `
- Shell alias `refactor`: helper to commit a refactor `refactor(scope): ` or `refactor: `
- Auto detect scope from change files using the `.mmrc.json` file

**Example mmrc file:**

```json
{
"scopes": [
{
"name": "user",
"match": "$CWD/apps/user/**"
},
{
"name": "products",
"match": "$CWD/apps/products/**"
},
{
"name": "settings",
"match": "$CWD/configs/**"
}
]
}
```

## How to use

## How to install

```sh
npm install -g @jondotsoy/commit-help
```

and run add the next line to your shell config (.alias, .bashrc, .zshrc, etc):

```sh
eval $(commit-help -)
```

> You can use wthout install. Just add into your shell config:
>
> ```sh
> eval $(npx @jondotsoy/commit-help -)
> ```
>
> ⚠️ This can delay to the shell startup.