Created
June 15, 2024 21:28
-
-
Save aiKrice/37a39351f3c7ad228d81e2735c56cbe6 to your computer and use it in GitHub Desktop.
Medium commit msg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/zsh | |
| source "githooks/android/toolbox.sh" | |
| hook="Commit-msg check" | |
| progress "$hook" | |
| if [[ "$commit_message" =~ $conventionnal_commit_pattern ]]; then | |
| exitWithMessage "$hook failed because it doesn't match to your convention" | |
| else | |
| printSuccess "$hook: Commit successfully created" | |
| showSuccessNotification "$hook" "Commit successfully created" | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment