Skip to content

Commit

Permalink
Handle PullRequestEvent where related PR has empty body
Browse files Browse the repository at this point in the history
It doesn't seem to be covered in the github docs but it is possible to
create a pull request with no body/description in which case the body is
sent as Null which fails to decode

```
λ> eitherDecodeStrict b :: Either String PullRequestEvent
Left "Error in $['pull_request'].body: expected Text, encountered Null"
```
  • Loading branch information
rob-b committed Jan 29, 2019
1 parent aa1148c commit 082a3c8
Show file tree
Hide file tree
Showing 4 changed files with 1,130 additions and 322 deletions.
Loading

0 comments on commit 082a3c8

Please sign in to comment.