searchResults, resp, _ := client.Search.Issues(prSearchPattern, searchOpt)
fmt.Println("The following PRs match the search pattern", prSearchPattern)
for _, pr := range searchResults.Issues {
fmt.Println(*pr.Number)
fmt.Println(*pr.Title)
fmt.Println(*pr.Comments)
}
Is it possible to retrieve all the comments associated with a PR?
At the moment if I do:
pr.Comments is just holding the number of comments associated with the PR.
From the github doc the comments are managed by the Issue Comments API
https://developer.github.com/v3/issues/comments/