Compare commits

..

No commits in common. "5b8b03790577202d8de7f6044433e23d5e14b7b3" and "82caca32d43e06917709235cd8a3f551c8e700ba" have entirely different histories.

2 changed files with 22 additions and 4 deletions

20
.githooks/pre-commit Normal file
View File

@ -0,0 +1,20 @@
#!/usr/bin/env bash
# File generated by pre-commit: https://pre-commit.com
# ID: 138fd403232d2ddd5efb44317e38bf03
# start templated
INSTALL_PYTHON=/usr/bin/python3
ARGS=(hook-impl --config=.pre-commit-config.yaml --hook-type=pre-commit)
# end templated
HERE="$(cd "$(dirname "$0")" && pwd)"
ARGS+=(--hook-dir "$HERE" -- "$@")
if [ -x "$INSTALL_PYTHON" ]; then
exec "$INSTALL_PYTHON" -mpre_commit "${ARGS[@]}"
elif command -v pre-commit > /dev/null; then
exec pre-commit "${ARGS[@]}"
else
echo '`pre-commit` not found. Did you forget to activate your virtualenv?' 1>&2
exit 1
fi

View File

@ -1,9 +1,7 @@
NEW_VERSION:=$(shell yq '.version |= (split(".") | .[-1] |= ((. tag = "!!int") + 1) | join("."))' Chart.yaml | yq '.version')
pre-commit:
pip install pre-commit
pre-commit install
init:
git config core.hooksPath .githooks
branch:
@echo "New chart version is: $(NEW_VERSION)"