def check_commit_contains_jira_issue_number(commit, type)
      commit_id = "#{shorten_sha(commit.sha)} ('#{truncate(commit.message)}')"
      jira_project_key = config.jira_project_key
      message = "The commit message #{commit_id} should contain JIRA issue number" \
      " between square brackets (i.e. [#{jira_project_key}-XXX]), multiple allowed" \
      " (i.e. [#{jira_project_key}-XXX, #{jira_project_key}-YYY, #{jira_project_key}-ZZZ])"

      report(type, message) unless contains_jira_issue_number?(commit.message)
    end
def check_commit_contains_jira_issue_number(commit, type)
      commit_id = "#{shorten_sha(commit.sha)} ('#{truncate(commit.message)}')"
      jira_project_key = config.jira_project_key
      message = "The commit message #{commit_id} should contain JIRA issue number" \
      " between square brackets (i.e. [#{jira_project_key}-XXX]), multiple allowed" \
      " (i.e. [#{jira_project_key}-XXX, #{jira_project_key}-YYY, #{jira_project_key}-ZZZ])"

      report(type, message) unless contains_jira_issue_number?(commit.message)
    end
Check if the commit's message contains any JIRA issue number matching the jira project key.

 @param  [Commit] commit
         The git commit to check
 @param  [Symbol] level (Default: :warn)
         The report level (:fail, :warn, :message) if the check fails [report](#report)
 @return [void]