1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-13 10:15:41 +08:00

docs(dev): update commit style guide

This commit is contained in:
Shidong Wang 2021-10-06 14:52:46 +08:00
parent db34307c46
commit 48009e8a8e
No known key found for this signature in database
GPG Key ID: 41BB7053E835C848

@ -125,26 +125,29 @@ understand them before you contribute code or documentation for the first time.
### Commit style guide ### Commit style guide
A git commit message consists a three distinct parts separated by black line. Follow the [conventional commits guidelines](https://www.conventionalcommits.org/) to _make reviews easier_ and to make the git logs more valuable.
The general structure of a commit message is:
``` ```
Type (scope): Subject <type>([optional scope]): <description>
body [optional body]
footer [optional footer(s)]
``` ```
**types:** **types:**
- `feat`: a new feature - `feat`: A new feature
- `fix`: a bug fix - `fix`: A bug fix
- `change`: no backward compatible changes - `docs`: Documentation only changes
- `docs`: changes to documentation - `style`: Changes that do not affect the meaning of the code
- `style`: formatting, missing semi colons, etc; no code change - `refactor`: A code change that neither fixes a bug nor adds a feature
- `refactor`: refactoring production code - `pref`: A code change that improves performance
- `test`: adding tests, refactoring test; no production code change - `test`: Adding missing tests or correcting existing tests
- `chore`: updating build tasks, package manager configs, etc; no production code change - `ci`: Changes to our CI configuration files and scripts
- `chore`: Other changes that don't modify src or test files
- `revert`: Reverts a previous commit
**scopes:** **scopes:**
@ -154,6 +157,9 @@ footer
- `bundle`: files in `bundle/` directory - `bundle`: files in `bundle/` directory
- `core`: other files in this repository - `core`: other files in this repository
In addition to these scopes above,
you can also use a specific layer name or plugin name as a scope.
**subject:** **subject:**
Subjects should be no greater than 50 characters, Subjects should be no greater than 50 characters,