aboutsummaryrefslogtreecommitdiffziptar.gz
path: root/.githooks
diff options
context:
space:
mode:
authorgodosa <godosa@godosa.eu>2026-10-07 07:44:16 +0200
committergodosa <godosa@godosa.eu>2026-10-07 07:44:16 +0200
commit9d5641fe6585a61894f7b7427a68c794e5efe76d (patch)
tree79ebae3131df1c50542420db9e5ecb44e3d22076 /.githooks
parent81d4e80fd5aabe4e80f58e960affa795cf7d34ec (diff)
downloadworkflow-9d5641fe6585a61894f7b7427a68c794e5efe76d.tar.gz
workflow-9d5641fe6585a61894f7b7427a68c794e5efe76d.zip
Denylist guard at commit time (pre-commit + commit-msg hooks); drop publish_snapshot
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JEAjUkQRrCYX5MZhWxdtj2
Diffstat (limited to '.githooks')
-rwxr-xr-x.githooks/commit-msg5
-rwxr-xr-x.githooks/pre-commit5
2 files changed, 10 insertions, 0 deletions
diff --git a/.githooks/commit-msg b/.githooks/commit-msg
new file mode 100755
index 0000000..1d0bf6f
--- /dev/null
+++ b/.githooks/commit-msg
@@ -0,0 +1,5 @@
+#!/bin/sh
+# Denylist guard (scripts/denylist_check.py): commit message. Enable: git config core.hooksPath .githooks
+s="$(git rev-parse --show-toplevel)/scripts/denylist_check.py"
+[ -f "$s" ] || exit 0
+exec python3 "$s" msg "$1"
diff --git a/.githooks/pre-commit b/.githooks/pre-commit
new file mode 100755
index 0000000..e5b89ec
--- /dev/null
+++ b/.githooks/pre-commit
@@ -0,0 +1,5 @@
+#!/bin/sh
+# Denylist guard (scripts/denylist_check.py): staged lines + paths. Enable: git config core.hooksPath .githooks
+s="$(git rev-parse --show-toplevel)/scripts/denylist_check.py"
+[ -f "$s" ] || exit 0
+exec python3 "$s" staged