code: public List<Comment> getComments(String commentsUrl, GitHubRepo repo) throws RestClientException {
  
          List<Comment> comments = new ArrayList<>();
  
          // decrypt password
          String decryptedPassword = decryptString(repo.getPassword(), settings.getKey());
  
          String personalAccessToken = (String) repo.getOptions().get("personalAccessToken");
          String decryptedPersonalAccessToken = decryptString(personalAccessToken, settings.getKey());
  
          boolean lastPage = false;
          String queryUrlPage = commentsUrl;
          while (!lastPage) {
              ResponseEntity<String> response = makeRestCall(queryUrlPage, repo.getUserId(), decryptedPassword,decryptedPersonalAccessToken);
              JSONArray jsonArray = parseAsArray(response);
              for (Object item : jsonArray) {
                  JSONObject jsonObject = (JSONObject) item;
  
                  Comment comment = new Comment();
                  JSONObject userJsonObj = (JSONObject) jsonObject.get("user");
                  comment.setUser((String) userJsonObj.get("login"));
                  long crt = new DateTime(str(jsonObject, "created_at")).getMillis();
                  comment.setCreatedAt(crt);
                  long upd = new DateTime(str(jsonObject, "updated_at")).getMillis();
                  comment.setUpdatedAt(upd);
                  comment.setBody(str(jsonObject, "body"));
                  comments.add(comment);
              }
              if (CollectionUtils.isEmpty(jsonArray)) {
                  lastPage = true;
              } else {
                  if (isThisLastPage(response)) {
                      lastPage = true;
                  } else {
                      lastPage = false;
                      queryUrlPage = getNextPageUrl(response);
                  }
              }
          }
          return comments;
      }
docs: Get comments from the given comment url
  @param commentsUrl
  @param repo
  @return
  @throws RestClientException