Question about context. #1532
-
I am attempting to make rest calls to the Github API with the context.issue. The bot I am writing needs to grab label data on newly opened issues. I am able to get that data in the terminal with a simple curl request and can do so with the non-context octokit as well. Every time I've attempted to specify the parameters in context.issue the GET request ends up being out of order. I cannot find any detailed documentation on how exactly these parameters are used. the URL I need the context.octokit to GET would be something like this: https://api.github.com/repos/repo/issues/issue_number/labels How I am specifying it with the issue.context:
with this I receive a 404 error. Because the GET request is using a url like this: 'https://api.github.com/repos/username/repo/labels/?issue_number=21', How can I get the context.issue({}) to match up with the url that I want? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think I figured it out! |
Beta Was this translation helpful? Give feedback.
I think I figured it out!