Hacktoberfest / hacktoberfest-2020

Hacktoberfest - App to manage the annual open-source challenge, used for the 2019 & 2020 seasons.
https://hacktoberfest.digitalocean.com
Other
497 stars 145 forks source link

Drop nil values from GitHub response #529

Closed MattIPv4 closed 3 years ago

MattIPv4 commented 3 years ago

Description

Drop nil values from GitHub response.

Should resolve NoMethodError: undefined method 'createdAt' for nil:NilClass seen during registration for some users.

(Coming from @graphql_hash.createdAt in github_pull_request.rb, which would imply @graphql_hash is nil, so GithubPullRequest was instantiated with nil)

Test process

N/A, no idea what the cause is.

Requirements to merge