Backbone: How about automatic commit message style validation?

Created on 15 Aug 2016  路  1Comment  路  Source: jashkenas/backbone

If you look at commit history of projects like agnuar.js or jquery, you will notice that they use a consistent commit message style. Would you perhaps like to do the same?

One way to support a single commit message style is to have git perform the check via a hook, like so:

record_ember

The process shown above is done via an npm module commitplease (npm, github). It checks your commit message and tells you if it is a poor one (long lines, bad first line and so on). Commitplease is used by jQuery Core, jQuery UI, jQuery Mobile, Globalize, QUnit and others. It is as simple as

npm install commitplease --save-dev

If you are interested, let me know what you think. Disclaimer: I help develop commitplease.

enhancement wontfix

Most helpful comment

This seems like a lot of overhead for little gain. A good chunk of our pull requests come from developers new to Git / Github. I don't think we want to add yet another barrier to entry.

>All comments

This seems like a lot of overhead for little gain. A good chunk of our pull requests come from developers new to Git / Github. I don't think we want to add yet another barrier to entry.

Was this page helpful?
0 / 5 - 0 ratings