···11+## Git Commit Message Convention
22+33+> This is adapted from [Angular's commit convention](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular).
44+55+#### TL;DR:
66+77+Messages must be matched by the following regex:
88+99+<!-- prettier-ignore -->
1010+```js
1111+/^(revert: )?(feat|fix|docs|dx|refactor|perf|test|workflow|build|ci|chore|types|wip|release|deps)(\(.+\))?: .{1,50}/
1212+```
1313+1414+#### Examples
1515+1616+Appears under "Features" header, `dev` subheader:
1717+1818+```
1919+feat(dev): add 'comments' option
2020+```
2121+2222+Appears under "Bug Fixes" header, `dev` subheader, with a link to issue #28:
2323+2424+```
2525+fix(dev): fix dev error
2626+2727+close #28
2828+```
2929+3030+Appears under "Performance Improvements" header, and under "Breaking Changes" with the breaking change explanation:
3131+3232+```
3333+perf(build): remove 'foo' option
3434+3535+BREAKING CHANGE: The 'foo' option has been removed.
3636+```
3737+3838+The following commit and commit `667ecc1` do not appear in the changelog if they are under the same release. If not, the revert commit appears under the "Reverts" header.
3939+4040+```
4141+revert: feat(compiler): add 'comments' option
4242+4343+This reverts commit 667ecc1654a317a13331b17617d973392f415f02.
4444+```
4545+4646+### Full Message Format
4747+4848+A commit message consists of a **header**, **body** and **footer**. The header has a **type**, **scope** and **subject**:
4949+5050+```
5151+<type>(<scope>): <subject>
5252+<BLANK LINE>
5353+<body>
5454+<BLANK LINE>
5555+<footer>
5656+```
5757+5858+The **header** is mandatory and the **scope** of the header is optional.
5959+6060+### Revert
6161+6262+If the commit reverts a previous commit, it should begin with `revert: `, followed by the header of the reverted commit. In the body, it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted.
6363+6464+### Type
6565+6666+If the prefix is `feat`, `fix` or `perf`, it will appear in the changelog. However, if there is any [BREAKING CHANGE](#footer), the commit will always appear in the changelog.
6767+6868+Other prefixes are up to your discretion. Suggested prefixes are `docs`, `chore`, `style`, `refactor`, and `test` for non-changelog related tasks.
6969+7070+### Scope
7171+7272+The scope could be anything specifying the place of the commit change. For example `dev`, `build`, `workflow`, `cli` etc...
7373+7474+### Subject
7575+7676+The subject contains a succinct description of the change:
7777+7878+- use the imperative, present tense: "change" not "changed" nor "changes"
7979+- don't capitalize the first letter
8080+- no dot (.) at the end
8181+8282+### Body
8383+8484+Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes".
8585+The body should include the motivation for the change and contrast this with previous behavior.
8686+8787+### Footer
8888+8989+The footer should contain any information about **Breaking Changes** and is also the place to
9090+reference GitHub issues that this commit **Closes**.
9191+9292+**Breaking Changes** should start with the word `BREAKING CHANGE:` with a space or two newlines. The rest of the commit message is then used for this.