octokit / go-octokit

Simple Go wrapper for the GitHub API
https://github.com/octokit/go-octokit
MIT License
258 stars 79 forks source link

Allow parsing null pushed_at #75

Closed k0kubun closed 9 years ago

k0kubun commented 9 years ago

Repository's pushed_at is an attribute which can be null. If it is null, you'll get a following error message.

parsing time "null" as ""2006-01-02T15:04:05Z07:00"": cannot parse "null" as """

I changed the test to fail for such a situation and passed by changing PushedAt to be a pointer.

owenthereal commented 9 years ago

Looks decent!

k0kubun commented 9 years ago

Thanks!