Enforce a commit message convention project-wide #3581
Replies: 8 comments 2 replies
-
Can you add this discussion to an engineering sync agenda? |
Beta Was this translation helpful? Give feedback.
-
Convention: https://www.conventionalcommits.org/en/v1.0.0/#specification |
Beta Was this translation helpful? Give feedback.
-
https://github.com/angular/angular/blob/22b96b9/CONTRIBUTING.md#-commit-message-guidelines |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Using this in PR titles seems to be popular |
Beta Was this translation helpful? Give feedback.
-
My proposal is: The convention applies to PR titles (which become commit messages for the merged squashed commits). It's optional for the commit messages inside the PR. Allowed types (enforced), mapped to changelog entry types:
If more than one applies, prioritize the higher up in the list. Allowed scopes (maybe not enforced, just a guideline?):
If more than one applies, use your best judgement, favor the one that contains more of the code. Use Examples:
Questions:
To be discussed later:
|
Beta Was this translation helpful? Give feedback.
-
I sometimes end up repeating the same thing in the title of a PR; for example: "fix(doc): Fix various doc warnings #4514". I feel like I'm wasting space. I wonder if there's a good way to mitigate this. I could have used the word "Resolve" instead of "Fix" in the title, but that would make it even longer. |
Beta Was this translation helpful? Give feedback.
-
I think we can close this one now |
Beta Was this translation helpful? Give feedback.
-
Motivation
To automate some tools based on commits, we'd need a commit convention. In the long run, this also helps to hastily identify which commits are fixes, improvements, reactors, documentation, styling, and even breaking changes. And, as a result, it helps us understand which commit might have made a behavioral change, just by seeing the commit title.
Specifications
https://www.conventionalcommits.org/en/v1.0.0/#specification
Designs
Related Work
N/A
Beta Was this translation helpful? Give feedback.
All reactions