mirror of
https://github.com/bitnami/charts.git
synced 2026-03-09 07:27:18 +08:00
Add pre-commit hook checking kubeapps changes
This commit is contained in:
8
githooks/pre-commit/kubeapps
Executable file
8
githooks/pre-commit/kubeapps
Executable 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
|
||||
Reference in New Issue
Block a user