code: public List<Discussion> getCommitDiscussions(Object projectIdOrPath, Integer commitId, int maxItems) throws GitLabApiException {
          if (maxItems < 1) {
              return (getCommitDiscussions(projectIdOrPath, commitId));
          } else {
              Response response = get(Response.Status.OK, getPerPageQueryParam(maxItems),
                  "projects", getProjectIdOrPath(projectIdOrPath), "commits", commitId, "discussions");
              return (response.readEntity(new GenericType<List<Discussion>>() {}));
          }
      }
docs: Get a list of discussions for the specified commit.
  
  <pre><code>GitLab Endpoint: GET /projects/:id/commits/:commit_id/discussions</code></pre>
  
  @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
  @param commitId the internal ID of the commit
  @param maxItems the maximum number of Discussion instances to get, if &lt; 1 will fetch all Discussion instances for the commit
  @return a list containing the discussions for the specified commit
  @throws GitLabApiException if any exception occurs during execution