def check_commit_message_format(message)
      check_label = 'Includes a valid BugId, Story or Epic number'

      matches = COMMIT_FORMAT.match(message)

      if matches
        Status.report(check_label, true)
        check_commit_message_length(matches[1])
      else
        Status.report(check_label, false)
        check_commit_message_length(message)
        @errors.push(check_commit_message_format_error)
      end
    end
def check_commit_message_format(message)
      check_label = 'Includes a valid BugId, Story or Epic number'

      matches = COMMIT_FORMAT.match(message)

      if matches
        Status.report(check_label, true)
        check_commit_message_length(matches[1])
      else
        Status.report(check_label, false)
        check_commit_message_length(message)
        @errors.push(check_commit_message_format_error)
      end
    end
Check commit message contains no non-ASCII characters