Repository navigation
feat(dev-infra): validate breaking changes commit messages - #41274
alan-agius4 wants to merge 6 commits into
Conversation
With this change we valid breaking changes descriptions as per our contribution guidelines See: https://github.com/angular/angular/blob/88fbc066775ab1a2f6a8c75f933375b46d8fa9a4/CONTRIBUTING.md#commit-message-footer
There was a problem hiding this comment.
I am afraid there is no good way to validate a breaking change notice without failing for commits that happen to have lines starting with the phrase "breaking change" 😁
For example, with the current implementation the following messages would be considered invalid:
docs: add note about breaking changes
Breaking changes are not fun for developers. Mention that in the docs.
...or...
Yes, I understand some people don't like wrapping their commit message lines 😛fix(foo): make it better
Fortunately, I was able to fix the bug in `foo` without introducing a
breaking change \o/
But others (read I) do and it is still what [we recommend][1] 🤔
|
@gkalpak, I think its a bit rare to have non breaking changes commit messages which start with the That said, I think that validation of breaking changes commit messages is important especially considering that these are important to be included on the changelog. Maybe I can skip validation for non caps BREAKING CHANGE text. What do you think? |
|
Yes, it is rare, but I still don't think it is a good idea to fail over something as generic. For reference, I found 7 occurrences of commit messages body lines starting with On the other hand, there are hundreds of incorrect breaking change notices, most of which are Given the above, I think it is reasonable to validate lines starting with |
|
@gkalpak PTAL |
gkalpak
left a comment
There was a problem hiding this comment.
A couple of nits. Otherwise lgtm 🚀
Thx for doing this, @alan-agius4 ✨
| print(`BREAKING CHANGE: <breaking change summary>`); | ||
| print(); | ||
| print(`<breaking change description>`); | ||
| print(); | ||
| print(); |
There was a problem hiding this comment.
I am not thrilled about this:
- 99% of the time it will not relevant 99% and could confuse beginner contributors.
- It seems weird to show one (rare) part of the commit message footer and not show the (much more common) issue references.
But I don't feel strongly about it, so happy either way.
There was a problem hiding this comment.
Maybe we should add the issue reference as well?
…1274) With this change we valid breaking changes descriptions as per our contribution guidelines See: https://github.com/angular/angular/blob/88fbc066775ab1a2f6a8c75f933375b46d8fa9a4/CONTRIBUTING.md#commit-message-footer PR Close angular#41274
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
With this change we valid breaking changes descriptions as per our contribution guidelines
See: https://github.com/angular/angular/blob/88fbc066775ab1a2f6a8c75f933375b46d8fa9a4/CONTRIBUTING.md#commit-message-footer
This gets me all the time.