Compare commits
No commits in common. "3cd24668166d012552d7067790a12b4df5f3eeb3" and "cf63ca5dc59cb352525891c8c0b73ca190213807" have entirely different histories.
3cd2466816
...
cf63ca5dc5
20
.githooks/pre-commit
Normal file
20
.githooks/pre-commit
Normal 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
|
6
Makefile
6
Makefile
@ -1,9 +1,7 @@
|
|||||||
NEW_VERSION:=$(shell yq '.version |= (split(".") | .[-1] |= ((. tag = "!!int") + 1) | join("."))' Chart.yaml | yq '.version')
|
NEW_VERSION:=$(shell yq '.version |= (split(".") | .[-1] |= ((. tag = "!!int") + 1) | join("."))' Chart.yaml | yq '.version')
|
||||||
|
|
||||||
|
init:
|
||||||
pre-commit:
|
git config core.hooksPath .githooks
|
||||||
pip install pre-commit
|
|
||||||
pre-commit install
|
|
||||||
|
|
||||||
branch:
|
branch:
|
||||||
@echo "New chart version is: $(NEW_VERSION)"
|
@echo "New chart version is: $(NEW_VERSION)"
|
||||||
|
Loading…
Reference in New Issue
Block a user