Skip to content

Commit

Permalink
docs: revise conventional commit description
Browse files Browse the repository at this point in the history
  • Loading branch information
alextilot committed May 22, 2023
1 parent b3aa96a commit f781b79
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ This project uses commit hooks to automate some tasks, and these are managed via

#### Conventional commits

[Conventional commits](https://www.conventionalcommits.org/) is a standard format for commit messages, used to aid readability of commit history. This commit message format, with [these commit types](https://github.com/amelioro/ameliorate/blob/main/commitlint.config.js), is enforced in a commit hook via [commitlint](https://github.com/conventional-changelog/commitlint).
[Conventional commits](https://www.conventionalcommits.org/) is a standard format for commit messages, used to aid readability of commit history. The format is `<type>[optional scope]: <description>` and an example commit message looks like `feat(header): add link to feedback page`. This commit message format, with [these commit types](https://github.com/amelioro/ameliorate/blob/main/commitlint.config.js), is enforced in a commit hook and github action via [commitlint](https://github.com/conventional-changelog/commitlint).

#### Prettier

Expand Down
23 changes: 11 additions & 12 deletions commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,19 @@ module.exports = {
"type-enum": [
2,
"always",
// custom types should have comments explaining them
[
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"build", // modifies the build process / pipeline for the application
"chore", // is a catch-all for any change that doesn't fit into another category
"ci", // modifies the continuous integration pipeline
"docs", // adds or improves documentation
"feat", // adds new functionality
"fix", // fixes a bug
"touchup", // small improvement, too small for "feat" or "refactor"
"perf",
"refactor",
"revert",
"style",
"test",
"perf", // improves performance without functionality changes
"refactor", // doesn't add functionality and doesn't fix a bug
"revert", // undoes a previous commit
"style", // does not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
"test", // updates testing
],
],
},
Expand Down

0 comments on commit f781b79

Please sign in to comment.