-
Notifications
You must be signed in to change notification settings - Fork 8
Define commit type, and enhance the CHANGELOG
format
#61
Comments
CHANGELOG
format
👍 Beautiful changelog generate, can't agree more ! |
Github is a mirror for us, just like Gitlab or Pikacode. So we can add a hook on our own Git server at https://git.hoa-project.net. Thoughts? |
Yup but we use github to accept pull request. same as travis build. |
The best way is to have it on our side to be sure we can't commit something with wrong message. We can use for that grumphp or we can inspire from it to be sure we have something equal for each library. Another thing is to provide a template (if necessary) to pre-fill the commit message. Regarding the syntax it may be difficult to define the scope so only the prefix as As this verification could be bypassed we must add it also on our side. But if we restrict it to be consistent about some format or anything else we should provide an help to use it. @Pierozi we can add in travis build some verification to be sure it's ok. |
Yep i like grumphp, that could be enough. Great idea! |
Be careful, generally speaking, preventing someone to commit (even if this is to increase code quality) is considered a bad practice: git concept is commit as often and as quickly as you need. |
@CircleCode I would highly go on your side. Should a dry-run mode on |
🤔 Ok, that could be a part of our Contributor guide, like we ask to run CS before submitting PR. |
I am agree with @CircleCode but this not means we should not provide a kind of tools (helper). We should provide a way to be able to do it on our side. In my case, I prefer to have an error when I try to commit and which explain what I have missed than waiting few weeks for a review and tell me the commit message have a wrong format. Using Grumphp will force contributors to respect our guideline it's maybe too restrictif, so we should not force people to use it but recommend it. And we should provide an easy way to implement it. |
Hello fellow @hoaproject/hoackers and users!
Introduction
Actual commit messages in Hoa are really great. They are detailed, meaningful, reviewed, and comprehensive. The commit title is always:
scope: title
. However, when generating theCHANGELOG.md
file, this is hard to see what is a bug fix or a new feature.Goal
Import the concept of “commit type” from the Angular commit message guideline.
To quote it:
Not everything is useful. We are mostly concerned about the “commit type”.
Differences with the current format
The “commit type” is the only main difference, and this is what I would like to “import” in our format. The goal is to generate a
CHANGELOG
as suggested by http://keepachangelog.com/en/0.3.0/, so with the “Added”, “Bug fixes”, “Removed“ Sections, and the date of the release (already given by our Rust Release snapshot format, but anyway, we should give it a try).Commit types
I would like to introduce the following commit types:
feat
for a new feature,fix
for a bug fix,test
for a test modification,doc
for a documentation modification,chore
to replace the “Quality” type,undef
for anything else, must not be used, so should we introduce it?Example
In the Angular commit message guideline, they propose this syntax:
type(scope): title
. In Hoa, we usescope: title
. The colon is a separator. However, the commit type will reduce the size of the title (remember that we have only 50 characters for the whole line!). With thetype(scope)
we no longer need a separator, so I proposetype(scope) title
, likefeat(permission) Search backward bla bla.
,fix(user) `getName` is incorrectly computing its value.
,Will produce:
Thoughts?
The text was updated successfully, but these errors were encountered: