Add pre-commit hook checking kubeapps changes

This commit is contained in:
Carlos Rodriguez Hernandez
2019-09-05 09:48:44 +00:00
parent dd4963353f
commit d3c886689b

8
githooks/pre-commit/kubeapps Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
if git diff --cached --name-only | grep '/kubeapps/'; then
printf '\n\U1F6AB Commit cancelled\n\nKubeapps changes detected in this repository.\nPlease, implement them in the kubeapps repository (https://github.com/kubeapps/kubeapps/tree/master/chart/kubeapps).\n'
exit 1
fi
exit 0