private void commitReviewNote(String reviewCommitHash,Review review){
  try (GitNoteWriter<Review> writer=GitNoteWriter.createNoteWriter(reviewCommitHash,repo,author,REVIEWS_REF)){
    List<Review> reviews=new ArrayList<Review>();
    reviews.add(review);
    writer.create("Writing review for " + reviewCommitHash,reviews);
  }
 }

private void commitReviewNote ( String reviewCommitHash , Review review ) { try ( GitNoteWriter < Review > writer = GitNoteWriter . createNoteWriter ( reviewCommitHash , repo , author , REVIEWS_REF ) ) { List < Review > reviews = new ArrayList < Review > ( ) ; reviews . add ( review ) ; writer . create ( "Writing review for " + reviewCommitHash , reviews ) ; } }
helper method that commits a new comment to the git notes .
