Only first PR comment on a line is returned


#1

I’m particularly interested in what v3 refers to as Pull Request comments on a line. It seems that the GraphQL api returns the first comment, but isn’t returning replies.

To demonstrate I created a PR here and added comments: https://github.com/octocat/Spoon-Knife/pull/16724#pullrequestreview-164075314

When I query using the query below, it only finds the first comment, but the second comment is nowhere to be found. Is there some other way to access that comment, or is it missing from the api?

{
  repository(owner: "octocat", name: "spoon-knife") {
    pullRequest(number: 16724) {
      title
      url
      timeline(last: 10) {
        edges {
          node {
            __typename
            ... on PullRequestReview {
              submittedAt
              state
              author {
                login
              }
              comments(first: 10) {
                totalCount
                edges {
                  node {
                    author {
                      login
                    }
                    url
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

returns just one comment:

{
  "data": {
    "repository": {
      "pullRequest": {
        "title": "testing the pull request title",
        "url": "https://github.com/octocat/Spoon-Knife/pull/16724",
        "timeline": {
          "edges": [
            {
              "node": {
                "__typename": "Commit"
              }
            },
            {
              "node": {
                "__typename": "PullRequestReview",
                "submittedAt": "2018-10-12T01:58:16Z",
                "state": "COMMENTED",
                "author": {
                  "login": "ericjonesSGSI"
                },
                "comments": {
                  "totalCount": 1,
                  "edges": [
                    {
                      "node": {
                        "author": {
                          "login": "ericjonesSGSI"
                        },
                        "url": "https://github.com/octocat/Spoon-Knife/pull/16724#discussion_r224652552"
                      }
                    }
                  ]
                }
              }
            }
          ]
        }
      }
    }
  }
}

Thanks!