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

Make repoWebhookResponseStatus optional #436

Closed
wants to merge 1 commit into from

Conversation

mightybyte
Copy link
Contributor

I have encountered situations where the repoWebhookResponseStatus field returned by GitHub is null (in my case it was in last_response). When this happens, I get the following error:

ParseError "Error in $[1]['last_response'].status: expected Text, encountered Null"

Unfortunately I can't find anything in the documentation (https://developer.github.com/v3/repos/hooks/) indicating that the status field is nullable. At any rate, this PR fixes the problem for me.

I have encountered situations where the `repoWebhookResponseStatus` field returned by GitHub is `null` (in my case it was in last_response).  When this happens, I get the following error:

```
ParseError "Error in $[1]['last_response'].status: expected Text, encountered Null"
```

Unfortunately I can't find anything in the documentation (https://developer.github.com/v3/repos/hooks/) indicating that the status field is nullable.  At any rate, this PR fixes the problem for me.
@phadej phadej self-assigned this May 26, 2020
@phadej
Copy link
Contributor

phadej commented May 26, 2020

amended and merged as part of #446, thanks!

@phadej phadej closed this May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants