git-hooks
Here are 247 public repositories matching this topic...
Missing hooks
There are two git hooks that we're missing from https://git-scm.com/docs/githooks.
Opening up an issue so we can track it.
We want to enforce talisman for specific repositories, potentially as a part of setup/build scripts. Currently the install.sh script is hardcoded as a pre-push hook.
We would like to be able to easily install talisman (e.g. via an install script) for specific repositories but as a pre-commit hook. Ideally, the install.sh script should be able to take a parameter just like the global insta
-
Updated
Mar 11, 2020 - PHP
The terraform_docs plugin is failing on terraform 0.11.x.
$ pre-commit run -a terraform_docs
Terraform docs...........................................................Failed
- hook id: terraform_docs
- exit code: 1
It's caused by a combination of set -e and this line:
hack_terraform_docs=$(terraform version | head -1 | grep -c 0.12)
This exits with error code 1
Developers hate being told to do without justification. Every rule has reasoning behind it, but it is not always obvious.
There are a bunch of hooks that allow you to skip hooks, husky lets you know about them on fails: https://github.com/typicode/husky/blob/master/src/runner/index.ts#L80-L92
-
Updated
Aug 18, 2019 - Shell
-
Updated
Nov 28, 2017 - PHP
Run flow with lint-staged, do it after #4.
https://github.com/stevegrunwell/wp-enforcer/blob/develop/bin/hooks/pre-commit#L9
This line is hard-coded and does not respect the -c flag of the CLI.
# Determine if we have a phpcs.xml file
if [[ -f ./phpcs.xml ]]; then
standard="--standard=./phpcs.xml"
else
standard=''
fiThe above needs to be updated to accept an arg when -c is set in the CLI.
-
Updated
May 24, 2019 - JavaScript
-
Updated
Jan 26, 2018 - Shell
-
Updated
Sep 3, 2014 - PHP
-
Updated
Apr 4, 2015 - Shell
-
Updated
Apr 21, 2020 - PHP
When you run a git hook, the Runner task works, your .commitee.exs works, but then the message does not print out.
Relevant line in mix commitee.runner, right here
-
Updated
Jun 7, 2020 - Python
-
Updated
May 15, 2020 - TypeScript
BEGIN RANT
First of all, I was overjoyed to find this! Thanks for doing this!
I've tried putting verbose instructions (like in this SO post) in our CONTRIBUTING guide to set up our recommended gith-hooks -- but some people just ignore it and get very annoyed when the CI fails their PR because they
Improve this page
Add a description, image, and links to the git-hooks topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the git-hooks topic, visit your repo's landing page and select "manage topics."

When run without a
configoption, the phpcsfixer2 task would fail with: