REST-API access to pull-request comments

I’m investigating the steps required to, for a particular repository in a particular project, with the REST-API:

  • retrieve a list of all PRs, open and closed, for that repo
  • extract comment text for each PR

It seems that comment text is aggregated by “path” via the REST API (which I guess is the “file” in the PR to which the comment(s) get attached?) – is there an easy way to either (a) get all the comments for a PR regardless of their paths (or for “all” paths), or (b) get a list of the paths involved in the PR to then iterate over them and fetch back their comments?


It looks like, as per this response elsewhere in the community ( that the best path to this data for the moment is via the “activities” associated with a PR.