-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot get comments via octokit #1495
Comments
Nope, looks like the GitHub API is now using I'm not sure how long this is guaranteed to work, but here's my workaround:
|
Thanks for the work around. That got me unblocked. |
@shiftkey But.. I think there's no API which can handle optional parameters in Issue.Comment.GetAllForRepository Thanks |
@pjc0247 I'm not clear what you were looking for in terms of options here - could you elaborate? EDIT: ah yes, I see what's missing. I'll open an issue for this. |
Given that #1500 is opened, are we happy to close this one? |
@ryangribble I think this is a separate issue to #1500. If this endpoint is now serving up different data, we need to address this as a breaking change (introduce |
OK so did you get confirmation that this had changed upstream? I thought for as long as Ive been using octokit it was like this - Eg since I just want to clarify with @jaredpar you said this is how you expect it to work, not necessarily that it used to work like this and has since changed, right? I dont disagree that we could rename the |
Correct. The code sample I posted is just my expectation of how the API should work. |
OK, since this was just an expectation thing rather than any kind of breaking change, Im going to close this issue out. Ive also raised #1511 to tweak the naming of |
Consider the following code:
This is how I would expect to retrieve the comments for a specific PR. If you run the code though you will see it print out the following
Essentially the PR claims to have 4 comments (and if you look at the PR in question you will see it does). Yet the
GetAll
method is returning an empty collection.Is there something I'm doing wrong here?
The text was updated successfully, but these errors were encountered: