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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Overcommit #765
Add Overcommit #765
Conversation
Overcommit will run checks against any staged code and commit messages before allowing the code to be committed or pushed. This example .overcommit.yml file follows what I've tended to use on past projects. It's opt-in by running the `overcommit --install` command, and can always be disabled or overridden if needed. For an example of how it works, make one of the yaml configuration files invalid and try to commit it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll speak to CI integration and not to the update to developer workflow. There's some functionality overlap with rubocop (newline detection), but we can throw this into the Jenkinsfile (or as part of the |
I'm not entirely sure about the benefit of adding this to Jenkins, especially given the need to sign the |
@markolson is it even possible to make it non-optional? I think it looks good but might change the language in the README to something that makes it seem more imperative, or at least gives a reason why one should install it. |
Can do. I'll also change |
@markolson that sounds perfect! |
fb89676
to
3252e75
Compare
@aub I've added a (very likely overly complex) setup script for people using OS X which enables overcommit as part of the setup process. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, this looks great. One last thing... does the README contain instructions to run your setup script? I think we're good to merge if we have that.
f093169
to
9afe5d7
Compare
@aub Updated the README. I also did a run-through where I deleted my homebrew, rubies, postgres, and redis and the script got me setup and running. |
!!! Awesome, let's do this. |
Overcommit will run checks using git hooks against any staged code and commit messages before allowing the code to be committed or pushed. This example .overcommit.yml file follows what I've tended to use on past projects.
It's opt-in by running the
overcommit --install --sign
command, and can always be disabled or overridden if needed. Any changes made to the.overcommit.yml
file or any plugins requireovercommit --sign
to be run again.For an example of how it works, make one of the yaml configuration files invalid and try to commit it.
馃毑 馃彔