{"action":"opened","number":5,"pull_request":{"url":"https://api.github.com/repos/avvo/json_api_resource/pulls/5","id":38378815,"html_url":"https://github.com/avvo/json_api_resource/pull/5","diff_url":"https://github.com/avvo/json_api_resource/pull/5.diff","patch_url":"https://github.com/avvo/json_api_resource/pull/5.patch","issue_url":"https://api.github.com/repos/avvo/json_api_resource/issues/5","number":5,"state":"open","locked":false,"title":"Default the errors collection to an empty hash instead of nil.","user":{"login":"sringling","id":13005804,"avatar_url":"https://avatars.githubusercontent.com/u/13005804?v=3","gravatar_id":"","url":"https://api.github.com/users/sringling","html_url":"https://github.com/sringling","followers_url":"https://api.github.com/users/sringling/followers","following_url":"https://api.github.com/users/sringling/following{/other_user}","gists_url":"https://api.github.com/users/sringling/gists{/gist_id}","starred_url":"https://api.github.com/users/sringling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sringling/subscriptions","organizations_url":"https://api.github.com/users/sringling/orgs","repos_url":"https://api.github.com/users/sringling/repos","events_url":"https://api.github.com/users/sringling/events{/privacy}","received_events_url":"https://api.github.com/users/sringling/received_events","type":"User","site_admin":false},"body":"This supports checks like resource.errors[:property].present? without first checking for resource.errors.nil?","created_at":"2015-06-23T20:24:22Z","updated_at":"2015-06-23T20:24:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/avvo/json_api_resource/pulls/5/commits","review_comments_url":"https://api.github.com/repos/avvo/json_api_resource/pulls/5/comments","review_comment_url":"https://api.github.com/repos/avvo/json_api_resource/pulls/comments{/number}","comments_url":"https://api.github.com/repos/avvo/json_api_resource/issues/5/comments","statuses_url":"https://api.github.com/repos/avvo/json_api_resource/statuses/0e18f3b316d258dd49023ca3cd0fce5be43afc85","head":{"label":"sringling:default_errors_to_empty_hash","ref":"default_errors_to_empty_hash","sha":"0e18f3b316d258dd49023ca3cd0fce5be43afc85","user":{"login":"sringling","id":13005804,"avatar_url":"https://avatars.githubusercontent.com/u/13005804?v=3","gravatar_id":"","url":"https://api.github.com/users/sringling","html_url":"https://github.com/sringling","followers_url":"https://api.github.com/users/sringling/followers","following_url":"https://api.github.com/users/sringling/following{/other_user}","gists_url":"https://api.github.com/users/sringling/gists{/gist_id}","starred_url":"https://api.github.com/users/sringling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sringling/subscriptions","organizations_url":"https://api.github.com/users/sringling/orgs","repos_url":"https://api.github.com/users/sringling/repos","events_url":"https://api.github.com/users/sringling/events{/privacy}","received_events_url":"https://api.github.com/users/sringling/received_events","type":"User","site_admin":false},"repo":{"id":37942771,"name":"json_api_resource","full_name":"sringling/json_api_resource","owner":{"login":"sringling","id":13005804,"avatar_url":"https://avatars.githubusercontent.com/u/13005804?v=3","gravatar_id":"","url":"https://api.github.com/users/sringling","html_url":"https://github.com/sringling","followers_url":"https://api.github.com/users/sringling/followers","following_url":"https://api.github.com/users/sringling/following{/other_user}","gists_url":"https://api.github.com/users/sringling/gists{/gist_id}","starred_url":"https://api.github.com/users/sringling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sringling/subscriptions","organizations_url":"https://api.github.com/users/sringling/orgs","repos_url":"https://api.github.com/users/sringling/repos","events_url":"https://api.github.com/users/sringling/events{/privacy}","received_events_url":"https://api.github.com/users/sringling/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sringling/json_api_resource","description":"Generic Adapter for json_api_client","fork":true,"url":"https://api.github.com/repos/sringling/json_api_resource","forks_url":"https://api.github.com/repos/sringling/json_api_resource/forks","keys_url":"https://api.github.com/repos/sringling/json_api_resource/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sringling/json_api_resource/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sringling/json_api_resource/teams","hooks_url":"https://api.github.com/repos/sringling/json_api_resource/hooks","issue_events_url":"https://api.github.com/repos/sringling/json_api_resource/issues/events{/number}","events_url":"https://api.github.com/repos/sringling/json_api_resource/events","assignees_url":"https://api.github.com/repos/sringling/json_api_resource/assignees{/user}","branches_url":"https://api.github.com/repos/sringling/json_api_resource/branches{/branch}","tags_url":"https://api.github.com/repos/sringling/json_api_resource/tags","blobs_url":"https://api.github.com/repos/sringling/json_api_resource/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sringling/json_api_resource/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sringling/json_api_resource/git/refs{/sha}","trees_url":"https://api.github.com/repos/sringling/json_api_resource/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sringling/json_api_resource/statuses/{sha}","languages_url":"https://api.github.com/repos/sringling/json_api_resource/languages","stargazers_url":"https://api.github.com/repos/sringling/json_api_resource/stargazers","contributors_url":"https://api.github.com/repos/sringling/json_api_resource/contributors","subscribers_url":"https://api.github.com/repos/sringling/json_api_resource/subscribers","subscription_url":"https://api.github.com/repos/sringling/json_api_resource/subscription","commits_url":"https://api.github.com/repos/sringling/json_api_resource/commits{/sha}","git_commits_url":"https://api.github.com/repos/sringling/json_api_resource/git/commits{/sha}","comments_url":"https://api.github.com/repos/sringling/json_api_resource/comments{/number}","issue_comment_url":"https://api.github.com/repos/sringling/json_api_resource/issues/comments{/number}","contents_url":"https://api.github.com/repos/sringling/json_api_resource/contents/{+path}","compare_url":"https://api.github.com/repos/sringling/json_api_resource/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sringling/json_api_resource/merges","archive_url":"https://api.github.com/repos/sringling/json_api_resource/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sringling/json_api_resource/downloads","issues_url":"https://api.github.com/repos/sringling/json_api_resource/issues{/number}","pulls_url":"https://api.github.com/repos/sringling/json_api_resource/pulls{/number}","milestones_url":"https://api.github.com/repos/sringling/json_api_resource/milestones{/number}","notifications_url":"https://api.github.com/repos/sringling/json_api_resource/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sringling/json_api_resource/labels{/name}","releases_url":"https://api.github.com/repos/sringling/json_api_resource/releases{/id}","created_at":"2015-06-23T20:20:44Z","updated_at":"2015-06-23T20:20:44Z","pushed_at":"2015-06-23T20:23:50Z","git_url":"git://github.com/sringling/json_api_resource.git","ssh_url":"git@github.com:sringling/json_api_resource.git","clone_url":"https://github.com/sringling/json_api_resource.git","svn_url":"https://github.com/sringling/json_api_resource","homepage":null,"size":244,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"avvo:master","ref":"master","sha":"25e20e9ea594d49baf5cbb38acdeabb034e50845","user":{"login":"avvo","id":23085,"avatar_url":"https://avatars.githubusercontent.com/u/23085?v=3","gravatar_id":"","url":"https://api.github.com/users/avvo","html_url":"https://github.com/avvo","followers_url":"https://api.github.com/users/avvo/followers","following_url":"https://api.github.com/users/avvo/following{/other_user}","gists_url":"https://api.github.com/users/avvo/gists{/gist_id}","starred_url":"https://api.github.com/users/avvo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avvo/subscriptions","organizations_url":"https://api.github.com/users/avvo/orgs","repos_url":"https://api.github.com/users/avvo/repos","events_url":"https://api.github.com/users/avvo/events{/privacy}","received_events_url":"https://api.github.com/users/avvo/received_events","type":"Organization","site_admin":false},"repo":{"id":29598684,"name":"json_api_resource","full_name":"avvo/json_api_resource","owner":{"login":"avvo","id":23085,"avatar_url":"https://avatars.githubusercontent.com/u/23085?v=3","gravatar_id":"","url":"https://api.github.com/users/avvo","html_url":"https://github.com/avvo","followers_url":"https://api.github.com/users/avvo/followers","following_url":"https://api.github.com/users/avvo/following{/other_user}","gists_url":"https://api.github.com/users/avvo/gists{/gist_id}","starred_url":"https://api.github.com/users/avvo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avvo/subscriptions","organizations_url":"https://api.github.com/users/avvo/orgs","repos_url":"https://api.github.com/users/avvo/repos","events_url":"https://api.github.com/users/avvo/events{/privacy}","received_events_url":"https://api.github.com/users/avvo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/avvo/json_api_resource","description":"Generic Adapter for json_api_client","fork":false,"url":"https://api.github.com/repos/avvo/json_api_resource","forks_url":"https://api.github.com/repos/avvo/json_api_resource/forks","keys_url":"https://api.github.com/repos/avvo/json_api_resource/keys{/key_id}","collaborators_url":"https://api.github.com/repos/avvo/json_api_resource/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/avvo/json_api_resource/teams","hooks_url":"https://api.github.com/repos/avvo/json_api_resource/hooks","issue_events_url":"https://api.github.com/repos/avvo/json_api_resource/issues/events{/number}","events_url":"https://api.github.com/repos/avvo/json_api_resource/events","assignees_url":"https://api.github.com/repos/avvo/json_api_resource/assignees{/user}","branches_url":"https://api.github.com/repos/avvo/json_api_resource/branches{/branch}","tags_url":"https://api.github.com/repos/avvo/json_api_resource/tags","blobs_url":"https://api.github.com/repos/avvo/json_api_resource/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/avvo/json_api_resource/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/avvo/json_api_resource/git/refs{/sha}","trees_url":"https://api.github.com/repos/avvo/json_api_resource/git/trees{/sha}","statuses_url":"https://api.github.com/repos/avvo/json_api_resource/statuses/{sha}","languages_url":"https://api.github.com/repos/avvo/json_api_resource/languages","stargazers_url":"https://api.github.com/repos/avvo/json_api_resource/stargazers","contributors_url":"https://api.github.com/repos/avvo/json_api_resource/contributors","subscribers_url":"https://api.github.com/repos/avvo/json_api_resource/subscribers","subscription_url":"https://api.github.com/repos/avvo/json_api_resource/subscription","commits_url":"https://api.github.com/repos/avvo/json_api_resource/commits{/sha}","git_commits_url":"https://api.github.com/repos/avvo/json_api_resource/git/commits{/sha}","comments_url":"https://api.github.com/repos/avvo/json_api_resource/comments{/number}","issue_comment_url":"https://api.github.com/repos/avvo/json_api_resource/issues/comments{/number}","contents_url":"https://api.github.com/repos/avvo/json_api_resource/contents/{+path}","compare_url":"https://api.github.com/repos/avvo/json_api_resource/compare/{base}...{head}","merges_url":"https://api.github.com/repos/avvo/json_api_resource/merges","archive_url":"https://api.github.com/repos/avvo/json_api_resource/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/avvo/json_api_resource/downloads","issues_url":"https://api.github.com/repos/avvo/json_api_resource/issues{/number}","pulls_url":"https://api.github.com/repos/avvo/json_api_resource/pulls{/number}","milestones_url":"https://api.github.com/repos/avvo/json_api_resource/milestones{/number}","notifications_url":"https://api.github.com/repos/avvo/json_api_resource/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/avvo/json_api_resource/labels{/name}","releases_url":"https://api.github.com/repos/avvo/json_api_resource/releases{/id}","created_at":"2015-01-21T16:23:41Z","updated_at":"2015-03-02T17:51:47Z","pushed_at":"2015-06-23T20:24:22Z","git_url":"git://github.com/avvo/json_api_resource.git","ssh_url":"git@github.com:avvo/json_api_resource.git","clone_url":"https://github.com/avvo/json_api_resource.git","svn_url":"https://github.com/avvo/json_api_resource","homepage":null,"size":244,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/avvo/json_api_resource/pulls/5"},"html":{"href":"https://github.com/avvo/json_api_resource/pull/5"},"issue":{"href":"https://api.github.com/repos/avvo/json_api_resource/issues/5"},"comments":{"href":"https://api.github.com/repos/avvo/json_api_resource/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/avvo/json_api_resource/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/avvo/json_api_resource/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/avvo/json_api_resource/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/avvo/json_api_resource/statuses/0e18f3b316d258dd49023ca3cd0fce5be43afc85"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":1,"changed_files":1}}