Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adopt a commit message style? #965

Open
alisianoi opened this issue Jul 26, 2016 · 8 comments
Open

Adopt a commit message style? #965

alisianoi opened this issue Jul 26, 2016 · 8 comments

Comments

@alisianoi
Copy link

alisianoi commented Jul 26, 2016

Hello, guardians of reasonable javascript style! It appears that you also follow some sort of a commit message style (but I could not find its description). Would you like to adopt some formal commit message style (like jquery style, angular style or maybe your own)?

Here is how commit history looks in those projects: jquery core and angular.js

@ljharb
Copy link
Collaborator

ljharb commented Jul 26, 2016

I generally try to preface commit messages with bracketed tags related to the commit, but I don't see the value of a tightly enforced commit message convention trumping the inconvenience of requiring everybody to follow it.

@lencioni
Copy link
Member

If you find it useful, here are my thoughts on what makes a great commit message.

Regarding the inconvenience of requiring everyone to use it, this can be resolved fairly easy by standardizing on a tool like Overcommit for your team to manage Git hooks.

@ljharb
Copy link
Collaborator

ljharb commented Jul 26, 2016

On an open source project, however, it becomes much more difficult to require potential contributors - who are often newcomers - to follow a commit message convention. Being welcoming to newcomers is very important.

@lencioni
Copy link
Member

Totally!

@alisianoi
Copy link
Author

@ljharb @lencioni there is an npm module called commitplease that I help develop and would recommend you to use (if you decide to adopt a commit message style). It tells newcomers about what is wrong with their commit message, like so (with an exact error and a link to style description):

record_ember

@lencioni
Copy link
Member

@lencioni
Copy link
Member

@all3fox You should submit a PR to Overcommit that adds commitplease as a CommitMsg hook. I've opened an issue over there if you are interested: sds/overcommit#405

@alisianoi
Copy link
Author

Thank you, I have just been assigned to that too: jzaefferer/commitplease#72

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants