private void autoSubmitIfMergeable()

in src/main/java/com/criteo/gerrit/plugins/automerge/AutomaticMerger.java [150:158]


  private void autoSubmitIfMergeable(Change change) throws Exception {
    if (atomicityHelper.isSubmittable(change.project, change.number)) {
      if (atomicityHelper.isAtomicReview(change)) {
        attemptToMergeAtomic(change);
      } else {
        attemptToMergeNonAtomic(change);
      }
    }
  }