Closed omgitsbillryan closed 5 years ago
This is awesome. :) :pray:
We could add a linter for checking comments and terms used throughout codebase. Not huge but a nice-to-have and low lift.
There might be a few obstacles to implementing this particular tool, but git-cop
is highly functional. It offers optionally configured cops for many commit-related styles, including blacklisting phrases in messages to encourage concision, etc... fit-commit
is another option I've seen.
<soapbox>
I've ranted on this before but I would love to see us improve our overall commit message quality. A quick git log -a
shows tenses interchanging, un-squashed messages w/ meaningless information, and variant strategies for writing said messages.
I think the value in maintaining a highly-readable git log
acts more like an insurance policy. This is hand-in-hand with making atomic commits that can be rolled back or cherry picked if needed. We hopefully don't need to spelunkdebug via git log all too often, but it's made easier by taking a bit of care when crafting the message.
When in doubt, consult the master himself, Linus. These commit messages are the pinnacle of excellence, and we should aim for excellence in all things.
</soapbox>
git rebase master && git push -f
(I think).git-cop
requires Ruby 2.6 or higher 😢 . fit-commit
seems like a reasonable alternative that does pretty much the same thing, albeit slightly lesser adopted. this would be a nice addition IMO.
master
is configured as a protected branch, which I'm pretty sure means that commits directly to it are not allowed. vets-api
is also configured to disallow merge and rebase commits to master
- it will only allow squash commits.
No longer blocked since our jenkins jobs are now "Pull Request" discovered.
The Problem
Some common mistakes are made when starting pull requests:
/db/migration
&/app
at the same time (changes to/db/migration
should be done in a standalone PR)Work to Be Done
codeclimate
since we already use this tooldanger
ruby since it looks like it may provide exactly what we need