code: public CommitComment createCommitComment(Serializable projectId, String sha, String note,
                                               String path, String line, String line_type) throws IOException {
  
          Query query = new Query()
                  .append("id", projectId.toString())
                  .appendIf("sha", sha)
                  .appendIf("note", note)
                  .appendIf("path", path)
                  .appendIf("line", line)
                  .appendIf("line_type", line_type);
          String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + "/repository/commits/" + sha + CommitComment.URL + query.toString();
  
          return dispatch().to(tailUrl, CommitComment.class);
      }
docs: Post comment to commit
  
  @param projectId (required) - The ID of a project
  @param sha       (required) - The name of a repository branch or tag or if not given the default branch
  @param note      (required) - Text of comment
  @param path      (optional) - The file path
  @param line      (optional) - The line number
  @param line_type (optional) - The line type (new or old)
  @return A CommitComment
  @throws IOException on gitlab api call error
  @see <a href="http://doc.gitlab.com/ce/api/commits.html#post-comment-to-commit">http://doc.gitlab.com/ce/api/commits.html#post-comment-to-commit</a>