def check_merge_commit_detected(level = :fail)
      message = 'Some merge commits were detected, you must use rebase to sync with base branch.'
      merge_commit_detector = /^Merge branch '#{github.branch_for_base}'/

      report(level, message) if git.commits.any? { |commit| commit.message =~ merge_commit_detector }
    end
def check_merge_commit_detected(level = :fail)
      message = 'Some merge commits were detected, you must use rebase to sync with base branch.'
      merge_commit_detector = /^Merge branch '#{github.branch_for_base}'/

      report(level, message) if git.commits.any? { |commit| commit.message =~ merge_commit_detector }
    end
Check if one or more merge commit is detected.

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