fix: pattern matching instead of file existence

The previous method of detecting automated commits was error-prone,
specifically when using VSCode to commit changes. This new method uses a
simple Regex pattern match to see if the commit message matches any
known auto-generated commits.

ref: N25B-241
This commit is contained in:
2025-11-03 14:51:18 +01:00
parent 020bf55772
commit 3c8cee54eb
2 changed files with 22 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This script checks if the current branch name follows the specified format.
# It's designed to be used as a 'pre-commit' git hook.