diff options
| author | DJ O'Leary <dijitol@proton.me> | 2026-06-26 18:04:09 +0200 |
|---|---|---|
| committer | DJ O'Leary <dijitol@proton.me> | 2026-06-26 18:04:09 +0200 |
| commit | 6d8fb621d1e93b83786890d6d9cb6f0d8defa8ae (patch) | |
| tree | 17c90d3984c114aa023600cc5bec6f6004b02243 /2025/ocaml/.githooks/commit-msg | |
| parent | ad4ea5ca4bc9f7540ee1d6a4fa2d881709dc6459 (diff) | |
refactor!: invert repo directory structure
now is language first
Diffstat (limited to '2025/ocaml/.githooks/commit-msg')
| -rwxr-xr-x | 2025/ocaml/.githooks/commit-msg | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/2025/ocaml/.githooks/commit-msg b/2025/ocaml/.githooks/commit-msg deleted file mode 100755 index 1c1c287..0000000 --- a/2025/ocaml/.githooks/commit-msg +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env bash -# Commit message hook - enforce conventional commit format - -commit_regex='^(feat|fix|docs|style|refactor|test|chore)(\(.+\))?: .{1,50}|^fixup!' - -if ! grep -qE "$commit_regex" "$1"; then - echo "❌ Invalid commit message format!" - echo "" - echo "Format: type(scope): description" - echo "Types: feat, fix, docs, style, refactor, test, chore" - echo "Example: feat(auth): add user login functionality" - echo "" - echo "Your message: $(cat $1)" - exit 1 -fi |
