From 6d8fb621d1e93b83786890d6d9cb6f0d8defa8ae Mon Sep 17 00:00:00 2001 From: DJ O'Leary Date: Fri, 26 Jun 2026 18:04:09 +0200 Subject: refactor!: invert repo directory structure now is language first --- 2025/ocaml/.githooks/commit-msg | 15 --------------- 2025/ocaml/.githooks/pre-push | 18 ------------------ 2 files changed, 33 deletions(-) delete mode 100755 2025/ocaml/.githooks/commit-msg delete mode 100755 2025/ocaml/.githooks/pre-push (limited to '2025/ocaml/.githooks') 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 diff --git a/2025/ocaml/.githooks/pre-push b/2025/ocaml/.githooks/pre-push deleted file mode 100755 index 51a8761..0000000 --- a/2025/ocaml/.githooks/pre-push +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env bash -# Pre-push hook - run tests before pushing - -set -e - -echo "๐Ÿงช Running tests before push..." - -# Run the full test suite -task test - -if [ $? -eq 0 ]; then - echo "โœ… All tests passed! Push allowed." - exit 0 -else - echo "โŒ Tests failed! Push blocked." - echo "Fix the failing tests before pushing." - exit 1 -fi -- cgit v1.2.3