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 ee178ea
Show file tree
Hide file tree
Showing 4 changed files with 810 additions and 2 deletions.
Loading

0 comments on commit ee178ea

Please sign in to comment.