def check_feature_jira_issue_number(level = :fail)
      return if samsao.trivial_change? || !samsao.feature_branch?
      return report(:fail, 'Your Danger config is missing a `jira_project_key` value.') unless jira_project_key?

      message = 'The PR title must starts with JIRA issue number between square brackets'\
                " (i.e. [#{config.jira_project_key}-XXX])."

      report(level, message) unless contains_jira_issue_number?(github.pr_title)
    end
def check_feature_jira_issue_number(level = :fail)
      return if samsao.trivial_change? || !samsao.feature_branch?
      return report(:fail, 'Your Danger config is missing a `jira_project_key` value.') unless jira_project_key?

      message = 'The PR title must starts with JIRA issue number between square brackets'\
                " (i.e. [#{config.jira_project_key}-XXX])."

      report(level, message) unless contains_jira_issue_number?(github.pr_title)
    end
Check if a feature branch contains a single JIRA issue number matching the jira project key.

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