Graphql PullRequest Timeline review threads #24850
-
I would like to use the timeline api in graphql to retrieve reviews and their comments however this isn’t possible currently in the graphql api. what I’m trying to do is:
The I would like to retrieve the review with its comment in one query and I reckon that this should work out of the box! but it doesn’t! any help will be appreciated! related issue: https://github.community/t5/GitHub-API-Development-and/GraphQL-API-returning-only-the-first-comment-of-review/m-p/26441#M2108 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I’ve updated you query somewhat to give you the information you’re asking for. Currently, pull request review threads don’t appear in the
Also, there is only one pull request review comment in the pull request you link to. The other comments are a pull request review thread, consisting of two comments as of this writing. The various types of pull request comments is complex and daunting, but there are ways to get all the informaiton out of the API. I hope that helps! |
Beta Was this translation helpful? Give feedback.
-
I got over this now and ignored the other comments in the timeline and went with minimal display of the review with just the reviewer comment and decided upon user clicking on the review they should go to a screen where they can be able to see the full list using
but this isn’t possible right now and i’m kinda blocked. is there any way that I can retrieve reviewThreads by review_ID? I’m trying to stay away from json API and me trying the graphql every single day kinda gets me frustrated as everything I want is either not possible or is there but doesn’t work as expected! I would really love if there is something already implemented and i’m missing it! |
Beta Was this translation helpful? Give feedback.
-
well I figured it out myself while working on commits I found out that I could use the this is what I used:
and what’s even awesome: is that it returns every single comment ;) |
Beta Was this translation helpful? Give feedback.
well I figured it out myself while working on commits I found out that I could use the
node
and pass an id and since PullRequestView is extending node then its pretty straight and easy.this is what I used:
and what’s even awesome: is that it returns every single comment ;)