feat: re-introduce git hooks

Now using the standardized method from the CB.

ref: N25B-367
This commit is contained in:
Twirre Meulenbelt
2025-12-02 22:04:46 +01:00
parent f469e4ce36
commit 94b92b3e4a
8 changed files with 240 additions and 50 deletions

15
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,15 @@
repos:
- repo: local
hooks:
- id: check-commit-msg
name: Check commit message format
entry: .githooks/check-commit-msg.sh
language: script
stages: [commit-msg]
- id: check-branch-name
name: Check branch name format
entry: .githooks/check-branch-name.sh
language: script
stages: [commit]
always_run: true
pass_filenames: false