{"action":"closed","number":40,"pull_request":{"url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/pulls/40","id":81341570,"html_url":"https://github.com/everypolitician/everypolitician-ruby/pull/40","diff_url":"https://github.com/everypolitician/everypolitician-ruby/pull/40.diff","patch_url":"https://github.com/everypolitician/everypolitician-ruby/pull/40.patch","issue_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/issues/40","number":40,"state":"closed","locked":false,"title":"Return nil for unknown countries and legislatures","user":{"login":"chrismytton","id":22996,"avatar_url":"https://avatars.githubusercontent.com/u/22996?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismytton","html_url":"https://github.com/chrismytton","followers_url":"https://api.github.com/users/chrismytton/followers","following_url":"https://api.github.com/users/chrismytton/following{/other_user}","gists_url":"https://api.github.com/users/chrismytton/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismytton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismytton/subscriptions","organizations_url":"https://api.github.com/users/chrismytton/orgs","repos_url":"https://api.github.com/users/chrismytton/repos","events_url":"https://api.github.com/users/chrismytton/events{/privacy}","received_events_url":"https://api.github.com/users/chrismytton/received_events","type":"User","site_admin":false},"body":"Rather than throwing an exception for missing countries it seems more ruby-ish to simply return nil.\r\n\r\nFixes #38 ","created_at":"2016-08-15T17:02:53Z","updated_at":"2016-08-16T15:43:16Z","closed_at":"2016-08-16T15:43:15Z","merged_at":"2016-08-16T15:43:15Z","merge_commit_sha":"82dae6c9ef330cc3dadab549140854cd0d0f3f22","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/pulls/40/commits","review_comments_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/pulls/40/comments","review_comment_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/issues/40/comments","statuses_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/statuses/ed032cc3a4d6258579e34ffcb284a09673f1bbb7","head":{"label":"everypolitician:return-nil-for-missing-countries-legislatures","ref":"return-nil-for-missing-countries-legislatures","sha":"ed032cc3a4d6258579e34ffcb284a09673f1bbb7","user":{"login":"everypolitician","id":12497298,"avatar_url":"https://avatars.githubusercontent.com/u/12497298?v=3","gravatar_id":"","url":"https://api.github.com/users/everypolitician","html_url":"https://github.com/everypolitician","followers_url":"https://api.github.com/users/everypolitician/followers","following_url":"https://api.github.com/users/everypolitician/following{/other_user}","gists_url":"https://api.github.com/users/everypolitician/gists{/gist_id}","starred_url":"https://api.github.com/users/everypolitician/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everypolitician/subscriptions","organizations_url":"https://api.github.com/users/everypolitician/orgs","repos_url":"https://api.github.com/users/everypolitician/repos","events_url":"https://api.github.com/users/everypolitician/events{/privacy}","received_events_url":"https://api.github.com/users/everypolitician/received_events","type":"Organization","site_admin":false},"repo":{"id":48421321,"name":"everypolitician-ruby","full_name":"everypolitician/everypolitician-ruby","owner":{"login":"everypolitician","id":12497298,"avatar_url":"https://avatars.githubusercontent.com/u/12497298?v=3","gravatar_id":"","url":"https://api.github.com/users/everypolitician","html_url":"https://github.com/everypolitician","followers_url":"https://api.github.com/users/everypolitician/followers","following_url":"https://api.github.com/users/everypolitician/following{/other_user}","gists_url":"https://api.github.com/users/everypolitician/gists{/gist_id}","starred_url":"https://api.github.com/users/everypolitician/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everypolitician/subscriptions","organizations_url":"https://api.github.com/users/everypolitician/orgs","repos_url":"https://api.github.com/users/everypolitician/repos","events_url":"https://api.github.com/users/everypolitician/events{/privacy}","received_events_url":"https://api.github.com/users/everypolitician/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/everypolitician/everypolitician-ruby","description":null,"fork":false,"url":"https://api.github.com/repos/everypolitician/everypolitician-ruby","forks_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/forks","keys_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/teams","hooks_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/hooks","issue_events_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/events","assignees_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/tags","blobs_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/languages","stargazers_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/stargazers","contributors_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/contributors","subscribers_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/subscribers","subscription_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/subscription","commits_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/merges","archive_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/downloads","issues_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/labels{/name}","releases_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/deployments","created_at":"2015-12-22T08:56:29Z","updated_at":"2016-07-15T23:56:46Z","pushed_at":"2016-08-16T15:43:16Z","git_url":"git://github.com/everypolitician/everypolitician-ruby.git","ssh_url":"git@github.com:everypolitician/everypolitician-ruby.git","clone_url":"https://github.com/everypolitician/everypolitician-ruby.git","svn_url":"https://github.com/everypolitician/everypolitician-ruby","homepage":null,"size":1241,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":2,"default_branch":"master"}},"base":{"label":"everypolitician:master","ref":"master","sha":"d8a8c3b0e619f9c14bc0bd9429b9cb0a7a06fec1","user":{"login":"everypolitician","id":12497298,"avatar_url":"https://avatars.githubusercontent.com/u/12497298?v=3","gravatar_id":"","url":"https://api.github.com/users/everypolitician","html_url":"https://github.com/everypolitician","followers_url":"https://api.github.com/users/everypolitician/followers","following_url":"https://api.github.com/users/everypolitician/following{/other_user}","gists_url":"https://api.github.com/users/everypolitician/gists{/gist_id}","starred_url":"https://api.github.com/users/everypolitician/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everypolitician/subscriptions","organizations_url":"https://api.github.com/users/everypolitician/orgs","repos_url":"https://api.github.com/users/everypolitician/repos","events_url":"https://api.github.com/users/everypolitician/events{/privacy}","received_events_url":"https://api.github.com/users/everypolitician/received_events","type":"Organization","site_admin":false},"repo":{"id":48421321,"name":"everypolitician-ruby","full_name":"everypolitician/everypolitician-ruby","owner":{"login":"everypolitician","id":12497298,"avatar_url":"https://avatars.githubusercontent.com/u/12497298?v=3","gravatar_id":"","url":"https://api.github.com/users/everypolitician","html_url":"https://github.com/everypolitician","followers_url":"https://api.github.com/users/everypolitician/followers","following_url":"https://api.github.com/users/everypolitician/following{/other_user}","gists_url":"https://api.github.com/users/everypolitician/gists{/gist_id}","starred_url":"https://api.github.com/users/everypolitician/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everypolitician/subscriptions","organizations_url":"https://api.github.com/users/everypolitician/orgs","repos_url":"https://api.github.com/users/everypolitician/repos","events_url":"https://api.github.com/users/everypolitician/events{/privacy}","received_events_url":"https://api.github.com/users/everypolitician/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/everypolitician/everypolitician-ruby","description":null,"fork":false,"url":"https://api.github.com/repos/everypolitician/everypolitician-ruby","forks_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/forks","keys_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/teams","hooks_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/hooks","issue_events_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/events","assignees_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/tags","blobs_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/languages","stargazers_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/stargazers","contributors_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/contributors","subscribers_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/subscribers","subscription_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/subscription","commits_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/merges","archive_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/downloads","issues_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/labels{/name}","releases_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/everypolitician/everypolitician-ruby/deployments","created_at":"2015-12-22T08:56:29Z","updated_at":"2016-07-15T23:56:46Z","pushed_at":"2016-08-16T15:43:16Z","git_url":"git://github.com/everypolitician/everypolitician-ruby.git","ssh_url":"git@github.com:everypolitician/everypolitician-ruby.git","clone_url":"https://github.com/everypolitician/everypolitician-ruby.git","svn_url":"https://github.com/everypolitician/everypolitician-ruby","homepage":null,"size":1241,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/everypolitician/everypolitician-ruby/pulls/40"},"html":{"href":"https://github.com/everypolitician/everypolitician-ruby/pull/40"},"issue":{"href":"https://api.github.com/repos/everypolitician/everypolitician-ruby/issues/40"},"comments":{"href":"https://api.github.com/repos/everypolitician/everypolitician-ruby/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/everypolitician/everypolitician-ruby/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/everypolitician/everypolitician-ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/everypolitician/everypolitician-ruby/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/everypolitician/everypolitician-ruby/statuses/ed032cc3a4d6258579e34ffcb284a09673f1bbb7"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"tmtmtmtm","id":57483,"avatar_url":"https://avatars.githubusercontent.com/u/57483?v=3","gravatar_id":"","url":"https://api.github.com/users/tmtmtmtm","html_url":"https://github.com/tmtmtmtm","followers_url":"https://api.github.com/users/tmtmtmtm/followers","following_url":"https://api.github.com/users/tmtmtmtm/following{/other_user}","gists_url":"https://api.github.com/users/tmtmtmtm/gists{/gist_id}","starred_url":"https://api.github.com/users/tmtmtmtm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmtmtmtm/subscriptions","organizations_url":"https://api.github.com/users/tmtmtmtm/orgs","repos_url":"https://api.github.com/users/tmtmtmtm/repos","events_url":"https://api.github.com/users/tmtmtmtm/events{/privacy}","received_events_url":"https://api.github.com/users/tmtmtmtm/received_events","type":"User","site_admin":false},"comments":4,"review_comments":2,"commits":11,"additions":98,"deletions":74,"changed_files":7}}
{"actor":{"display_login":"tmtmtmtm"}}