mirror of
https://github.com/bitnami/charts.git
synced 2026-03-06 06:58:50 +08:00
Several fixes
This commit is contained in:
5
githooks/pre-push/kubeapps → githooks/pre-commit/kubeapps
Normal file → Executable file
5
githooks/pre-push/kubeapps → githooks/pre-commit/kubeapps
Normal file → Executable file
@@ -1,9 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
currentBranch="$(git rev-parse --abbrev-ref HEAD)"
|
||||
originCommit="$(git rev-parse --short "$(git merge-base master "$currentBranch")")"
|
||||
|
||||
if git diff --name-only "$originCommit" | grep '/kubeapps/'; then
|
||||
if git diff --name-only --cached | grep '/kubeapps/'; then
|
||||
printf '\n\U1F6AB Pull Request 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
|
||||
5
githooks/pre-push/upstreamed → githooks/pre-commit/upstreamed
Normal file → Executable file
5
githooks/pre-push/upstreamed → githooks/pre-commit/upstreamed
Normal file → Executable file
@@ -1,9 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
currentBranch="$(git rev-parse --abbrev-ref HEAD)"
|
||||
originCommit="$(git rev-parse --short "$(git merge-base master "$currentBranch")")"
|
||||
|
||||
if git diff --name-only "$originCommit" | grep '/upstreamed/'; then
|
||||
if git diff --name-only --cached | grep '/upstreamed/'; then
|
||||
printf '\n\U1F6AB Pull Request cancelled\n\nChanges detected in the "upstreamed" folder.\nPlease, implement them in the Helm Charts repository (https://github.com/helm/charts).\n'
|
||||
exit 1
|
||||
fi
|
||||
2
githooks/pre-push/helm-lint
Normal file → Executable file
2
githooks/pre-push/helm-lint
Normal file → Executable file
@@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
## TODO: Only check folders in the bitnami/ path
|
||||
|
||||
currentBranch="$(git rev-parse --abbrev-ref HEAD)"
|
||||
originCommit="$(git rev-parse --short "$(git merge-base master "$currentBranch")")"
|
||||
filesToBePushed="$(git diff --name-only "$originCommit")"
|
||||
|
||||
Reference in New Issue
Block a user