Skip to content
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

Fix JSON unmarshal error of App.app.events #1370

Merged
merged 1 commit into from
Jan 10, 2020

Conversation

haya14busa
Copy link
Contributor

@haya14busa haya14busa commented Jan 9, 2020

I got following error.
json: cannot unmarshal string into Go struct field App.app.events of
type github.Event

It's regression from #1283 and event type should be actually string.

https://developer.github.com/v3/apps/#get-a-single-github-app
https://developer.github.com/v3/repos/branches/#list-apps-with-access-to-protected-branch

I got following error.
json: cannot unmarshal string into Go struct field App.app.events of
type github.Event

It's regression from google#1283 and event type should be actually string [1][2].

[1]: https://developer.github.com/v3/apps/#get-a-single-github-app
[2]: https://developer.github.com/v3/repos/branches/#list-apps-with-access-to-protected-branch
@googlebot googlebot added the cla: yes Indication that the PR author has signed a Google Contributor License Agreement. label Jan 9, 2020
Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @haya14busa!
LGTM.
Merging.

@gmlewis gmlewis merged commit 4b2f230 into google:master Jan 10, 2020
@haya14busa haya14busa deleted the fix-event-type branch January 10, 2020 10:32
@haya14busa
Copy link
Contributor Author

@gmlewis Can you release new patch version (v29.0.2)? v29 is broken unless including this fix.

@gmlewis
Copy link
Collaborator

gmlewis commented Jan 10, 2020

Yes indeed. Releasing 29.0.2 now.

@haya14busa
Copy link
Contributor Author

Thanks! 👍

n1lesh pushed a commit to n1lesh/go-github that referenced this pull request Oct 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indication that the PR author has signed a Google Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants