private void commitCommentNote(String reviewCommitHash,ReviewComment comment){
  try (GitNoteWriter<ReviewComment> writer=GitNoteWriter.createNoteWriter(reviewCommitHash,repo,author,COMMENTS_REF)){
    comment.setTimestamp(System.currentTimeMillis() / 1000);
    comment.setAuthor(author.getEmailAddress());
    List<ReviewComment> comments=new ArrayList<ReviewComment>();
    comments.add(comment);
    writer.create("Writing comment for " + reviewCommitHash,comments);
  }
 }

private void commitCommentNote ( String reviewCommitHash , ReviewComment comment ) { try ( GitNoteWriter < ReviewComment > writer = GitNoteWriter . createNoteWriter ( reviewCommitHash , repo , author , COMMENTS_REF ) ) { comment . setTimestamp ( System . currentTimeMillis ( ) / 1000 ) ; comment . setAuthor ( author . getEmailAddress ( ) ) ; List < ReviewComment > comments = new ArrayList < ReviewComment > ( ) ; comments . add ( comment ) ; writer . create ( "Writing comment for " + reviewCommitHash , comments ) ; } }
helper method that commits a new comment to the git notes .
