Skip to content

Seeing errors when calling List Responses on PullRequest Comment #26058

Answered by myyk
myyk asked this question in Actions
Discussion options

You must be logged in to vote

Thank you @weide-zhou! I was able to make a request exactly as I wanted to. Thank you for your help!

To summarize what you showed me in regard to getting reaction summary info from myyk/git-democracy#10 (comment)

  1. I was using the wrong API since the comment uses the issue comments API, not the pull request comments API even though it appears on the Pull Request page. https://developer.github.com/v3/issues/comments/#get-an-issue-comment

  2. I needed to add the Accept: application/vnd.github.squirrel-girl-preview header.

I ended up with something like this:

const octokit = github.getOctokit(
  inputs.token,
  {
    previews: ['squirrel-girl'],
  },
);

octokit.issues.getComment({
owner: owner,

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Product Feedback
2 participants