Getting pull request using wrong url? #57
TuinboonDev
started this conversation in
Show and tell
Replies: 1 comment 9 replies
-
The argument is |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, im using this code snippet to get a single pull request:
await context.octokit.rest.pulls.get({ owner, repo, number })
Except it uses this url:
https://api.github.com/repos/MYGITHUBNAME/REPO/pulls/?number=9
which gives a 404.While I think it should be:
https://api.github.com/repos/MYGITHUBNAME/REPO/pulls/9
Can anyone help me out?
Beta Was this translation helpful? Give feedback.
All reactions