Skip to content

Commit f97e008

Browse files
authored
docs: doc that the Conventional Commit style should be used for merged commits and PRs (bazel-contrib#1099)
1 parent bce3ccd commit f97e008

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

CONTRIBUTING.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,35 @@ information on using pull requests.
114114

115115
[GitHub Help]: https://help.github.com/articles/about-pull-requests/
116116

117+
### Commit messages
118+
119+
Commit messages (upon merging) and PR messages should follow the [Conventional
120+
Commits](https://www.conventionalcommits.org/) style:
121+
122+
```
123+
type(scope)!: <summary>
124+
125+
<body>
126+
127+
BREAKING CHANGE: <summary>
128+
```
129+
130+
Where `(scope)` is optional, and `!` is only required if there is a breaking change.
131+
If a breaking change is introduced, then `BREAKING CHANGE:` is required.
132+
133+
Common `type`s:
134+
135+
* `build:` means it affects the building or development workflow.
136+
* `docs:` means only documentation is being added, updated, or fixed.
137+
* `feat:` means a user-visible feature is being added.
138+
* `fix:` means a user-visible behavior is being fixed.
139+
* `refactor:` means some sort of code cleanup that doesn't change user-visible behavior.
140+
* `revert:` means a prior change is being reverted in some way.
141+
* `test:` means only tests are being added.
142+
143+
For the full details of types, see
144+
[Conventional Commits](https://www.conventionalcommits.org/).
145+
117146
## Generated files
118147

119148
Some checked-in files are generated and need to be updated when a new PR is

0 commit comments

Comments
 (0)