Skip to content

Instantly share code, notes, and snippets.

@aiKrice
Created June 15, 2024 21:28
Show Gist options
  • Select an option

  • Save aiKrice/37a39351f3c7ad228d81e2735c56cbe6 to your computer and use it in GitHub Desktop.

Select an option

Save aiKrice/37a39351f3c7ad228d81e2735c56cbe6 to your computer and use it in GitHub Desktop.
Medium commit msg
#! /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