-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Search Commits API Results Problem #601
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
Comments
This issue seems valid. Any ideas how this happened? It looks like I just want to understand what happened better (in order to learn from it, and to be more confident this is a valid issue; not looking to place blame on anyone, making mistakes is okay, they can be fixed once spotted and understood). I've looked through https://developer.github.com/changes/ and not spotting any changes. So my current best guess is that we made a mistake when reviewing #520 and this was never correct. Or perhaps GitHub did change the preview API, but didn't announce that (or maybe their docs page had a mistake that they've since fixed). The (From https://developer.github.com/v3/search/#search-commits.) But it doesn't have them all, so perhaps not. Any additional insight is welcome. Of course, it's not neccessary to figure this out, but I think it'd be helpful, if possible. |
@shurcooL My reasoning exactly the same. I've tried to find if docs have changed in the meantime on https://web.archive.org/web/20170301000000*/https://developer.github.com/v3/search but there is now history for January 2017. |
Indeed, @shurcooL, it's weird to have this broken without any documented change from GitHub. |
@aleksclark I've already submitted a pull request #602 |
@amirilovic facepalm of course I noticed that about 20 seconds before your comment. nevermind :P |
Yes, very odd, but this looks like the correct way to proceed. Thanks, all, for catching and fixing this. |
Yes, it should've. The Go API has changed. It's done to match the GitHub API, but it's still a breaking API change. It's fine to do so in a followup commit. Maybe even bundle a few changes into one version bump. |
OK, we have a few PRs in the queue. Let's get it bumped shortly. I won't create a new PR just for the bump. |
Bumped it in 5b3f96e. |
…oogle#602) Fix issue with commit search results deserialization Fixes google#601.
Issue: When calling search commits api (go-github/github/search.go:84) returned results contain correct number of items but each item properties are empty.
As per github search docs https://developer.github.com/v3/search/#search-commits
Search Commits is returning results as:
But in search.go:67 results are deserialized in CommitResult struct which has different layout:
So, returned results are empty.
The text was updated successfully, but these errors were encountered: