def check_non_single_commit_feature(level = :fail)
      commit_count = git.commits.size
      message = "Your feature branch should have a single commit but found #{commit_count}, squash them together!"

      report(level, message) if feature_branch? && commit_count > 1
    end
def check_non_single_commit_feature(level = :fail)
      commit_count = git.commits.size
      message = "Your feature branch should have a single commit but found #{commit_count}, squash them together!"

      report(level, message) if feature_branch? && commit_count > 1
    end
Check if a feature branch have more than one commit.

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