NO-ISSUE Remove prefix commit message checking to a substring check
@@ -4,11 +4,11 @@ set -o nounset
commit_file=${1}
commit_message="$(cat ${commit_file})"
-valid_commit_regex='^([A-Z]+-[0-9]+|#[0-9]+|merge|no-issue)'
+valid_commit_regex='([A-Z]+-[0-9]+|#[0-9]+|no-issue)'
error_msg="""Aborting commit.
-Your commit message is missing a prefix of either a JIRA issue ('JIRA-1111'), a GitHub issue ('#39') or 'Merge'.
-You can ignore the ticket by prefixing with 'NO-ISSUE'.
+Your commit message is missing either a JIRA issue ('JIRA-1111'), a GitHub issue ('#39').
+You can also ignore the ticket checking with 'NO-ISSUE'.
Your message is preserved at '${commit_file}'
"""
