code: public Comment addComment(Object projectIdOrPath, String sha, String note, String path, Integer line, LineType lineType) throws GitLabApiException {
          GitLabApiForm formData = new GitLabApiForm()
                  .withParam("note", note, true)
                  .withParam("path", path)
                  .withParam("line", line)
                  .withParam("line_type", lineType);
          Response response = post(Response.Status.CREATED, formData, "projects", getProjectIdOrPath(projectIdOrPath), "repository", "commits", sha, "comments");
          return (response.readEntity(Comment.class));
      }
docs: Add a comment to a commit.  In order to post a comment in a particular line of a particular file,
  you must specify the full commit SHA, the path, the line and lineType should be NEW.
  
  <pre><code>GitLab Endpoint: POST /projects/:id/repository/commits/:sha/comments</code></pre>
  
  @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
  @param sha a commit hash or name of a branch or tag
  @param note the text of the comment, required
  @param path the file path relative to the repository, optional
  @param line the line number where the comment should be placed, optional
  @param lineType the line type, optional
  @return a Comment instance for the posted comment
  @throws GitLabApiException GitLabApiException if any exception occurs during execution