Skip to content

Make repoWebhookResponseStatus optional#436

Closed
mightybyte wants to merge 1 commit intohaskell-github:masterfrom
mightybyte:patch-2
Closed

Make repoWebhookResponseStatus optional#436
mightybyte wants to merge 1 commit intohaskell-github:masterfrom
mightybyte:patch-2

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