{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/kwstannard/rubocop/pulls/1","id":195047761,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1MDQ3NzYx","html_url":"https://github.com/kwstannard/rubocop/pull/1","diff_url":"https://github.com/kwstannard/rubocop/pull/1.diff","patch_url":"https://github.com/kwstannard/rubocop/pull/1.patch","issue_url":"https://api.github.com/repos/kwstannard/rubocop/issues/1","number":1,"state":"open","locked":false,"title":"ORM abstraction cop","user":{"login":"kwstannard","id":1151753,"node_id":"MDQ6VXNlcjExNTE3NTM=","avatar_url":"https://avatars1.githubusercontent.com/u/1151753?v=4","gravatar_id":"","url":"https://api.github.com/users/kwstannard","html_url":"https://github.com/kwstannard","followers_url":"https://api.github.com/users/kwstannard/followers","following_url":"https://api.github.com/users/kwstannard/following{/other_user}","gists_url":"https://api.github.com/users/kwstannard/gists{/gist_id}","starred_url":"https://api.github.com/users/kwstannard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwstannard/subscriptions","organizations_url":"https://api.github.com/users/kwstannard/orgs","repos_url":"https://api.github.com/users/kwstannard/repos","events_url":"https://api.github.com/users/kwstannard/events{/privacy}","received_events_url":"https://api.github.com/users/kwstannard/received_events","type":"User","site_admin":false},"body":"Referencing IDs while working with objects breaks the ORM abstraction\r\nbecause you are using database concerns. By avoiding that when possible\r\nyou can avoid bugs and hard to reason about code.","created_at":"2018-06-14T23:58:47Z","updated_at":"2018-06-14T23:58:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kwstannard/rubocop/pulls/1/commits","review_comments_url":"https://api.github.com/repos/kwstannard/rubocop/pulls/1/comments","review_comment_url":"https://api.github.com/repos/kwstannard/rubocop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kwstannard/rubocop/issues/1/comments","statuses_url":"https://api.github.com/repos/kwstannard/rubocop/statuses/9270afbfbb0960beabe54375f83e9882932feb88","head":{"label":"kwstannard:orm_abstraction","ref":"orm_abstraction","sha":"9270afbfbb0960beabe54375f83e9882932feb88","user":{"login":"kwstannard","id":1151753,"node_id":"MDQ6VXNlcjExNTE3NTM=","avatar_url":"https://avatars1.githubusercontent.com/u/1151753?v=4","gravatar_id":"","url":"https://api.github.com/users/kwstannard","html_url":"https://github.com/kwstannard","followers_url":"https://api.github.com/users/kwstannard/followers","following_url":"https://api.github.com/users/kwstannard/following{/other_user}","gists_url":"https://api.github.com/users/kwstannard/gists{/gist_id}","starred_url":"https://api.github.com/users/kwstannard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwstannard/subscriptions","organizations_url":"https://api.github.com/users/kwstannard/orgs","repos_url":"https://api.github.com/users/kwstannard/repos","events_url":"https://api.github.com/users/kwstannard/events{/privacy}","received_events_url":"https://api.github.com/users/kwstannard/received_events","type":"User","site_admin":false},"repo":{"id":131539087,"node_id":"MDEwOlJlcG9zaXRvcnkxMzE1MzkwODc=","name":"rubocop","full_name":"kwstannard/rubocop","owner":{"login":"kwstannard","id":1151753,"node_id":"MDQ6VXNlcjExNTE3NTM=","avatar_url":"https://avatars1.githubusercontent.com/u/1151753?v=4","gravatar_id":"","url":"https://api.github.com/users/kwstannard","html_url":"https://github.com/kwstannard","followers_url":"https://api.github.com/users/kwstannard/followers","following_url":"https://api.github.com/users/kwstannard/following{/other_user}","gists_url":"https://api.github.com/users/kwstannard/gists{/gist_id}","starred_url":"https://api.github.com/users/kwstannard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwstannard/subscriptions","organizations_url":"https://api.github.com/users/kwstannard/orgs","repos_url":"https://api.github.com/users/kwstannard/repos","events_url":"https://api.github.com/users/kwstannard/events{/privacy}","received_events_url":"https://api.github.com/users/kwstannard/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kwstannard/rubocop","description":"A Ruby static code analyzer, based on the community Ruby style guide.","fork":true,"url":"https://api.github.com/repos/kwstannard/rubocop","forks_url":"https://api.github.com/repos/kwstannard/rubocop/forks","keys_url":"https://api.github.com/repos/kwstannard/rubocop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kwstannard/rubocop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kwstannard/rubocop/teams","hooks_url":"https://api.github.com/repos/kwstannard/rubocop/hooks","issue_events_url":"https://api.github.com/repos/kwstannard/rubocop/issues/events{/number}","events_url":"https://api.github.com/repos/kwstannard/rubocop/events","assignees_url":"https://api.github.com/repos/kwstannard/rubocop/assignees{/user}","branches_url":"https://api.github.com/repos/kwstannard/rubocop/branches{/branch}","tags_url":"https://api.github.com/repos/kwstannard/rubocop/tags","blobs_url":"https://api.github.com/repos/kwstannard/rubocop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kwstannard/rubocop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kwstannard/rubocop/git/refs{/sha}","trees_url":"https://api.github.com/repos/kwstannard/rubocop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kwstannard/rubocop/statuses/{sha}","languages_url":"https://api.github.com/repos/kwstannard/rubocop/languages","stargazers_url":"https://api.github.com/repos/kwstannard/rubocop/stargazers","contributors_url":"https://api.github.com/repos/kwstannard/rubocop/contributors","subscribers_url":"https://api.github.com/repos/kwstannard/rubocop/subscribers","subscription_url":"https://api.github.com/repos/kwstannard/rubocop/subscription","commits_url":"https://api.github.com/repos/kwstannard/rubocop/commits{/sha}","git_commits_url":"https://api.github.com/repos/kwstannard/rubocop/git/commits{/sha}","comments_url":"https://api.github.com/repos/kwstannard/rubocop/comments{/number}","issue_comment_url":"https://api.github.com/repos/kwstannard/rubocop/issues/comments{/number}","contents_url":"https://api.github.com/repos/kwstannard/rubocop/contents/{+path}","compare_url":"https://api.github.com/repos/kwstannard/rubocop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kwstannard/rubocop/merges","archive_url":"https://api.github.com/repos/kwstannard/rubocop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kwstannard/rubocop/downloads","issues_url":"https://api.github.com/repos/kwstannard/rubocop/issues{/number}","pulls_url":"https://api.github.com/repos/kwstannard/rubocop/pulls{/number}","milestones_url":"https://api.github.com/repos/kwstannard/rubocop/milestones{/number}","notifications_url":"https://api.github.com/repos/kwstannard/rubocop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kwstannard/rubocop/labels{/name}","releases_url":"https://api.github.com/repos/kwstannard/rubocop/releases{/id}","deployments_url":"https://api.github.com/repos/kwstannard/rubocop/deployments","created_at":"2018-04-29T23:46:52Z","updated_at":"2018-05-31T07:00:45Z","pushed_at":"2018-04-30T01:43:34Z","git_url":"git://github.com/kwstannard/rubocop.git","ssh_url":"git@github.com:kwstannard/rubocop.git","clone_url":"https://github.com/kwstannard/rubocop.git","svn_url":"https://github.com/kwstannard/rubocop","homepage":"http://rubocop.readthedocs.io","size":20960,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"kwstannard:master","ref":"master","sha":"628ab0f69fc30664a0bc77a2e9e37f704097b545","user":{"login":"kwstannard","id":1151753,"node_id":"MDQ6VXNlcjExNTE3NTM=","avatar_url":"https://avatars1.githubusercontent.com/u/1151753?v=4","gravatar_id":"","url":"https://api.github.com/users/kwstannard","html_url":"https://github.com/kwstannard","followers_url":"https://api.github.com/users/kwstannard/followers","following_url":"https://api.github.com/users/kwstannard/following{/other_user}","gists_url":"https://api.github.com/users/kwstannard/gists{/gist_id}","starred_url":"https://api.github.com/users/kwstannard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwstannard/subscriptions","organizations_url":"https://api.github.com/users/kwstannard/orgs","repos_url":"https://api.github.com/users/kwstannard/repos","events_url":"https://api.github.com/users/kwstannard/events{/privacy}","received_events_url":"https://api.github.com/users/kwstannard/received_events","type":"User","site_admin":false},"repo":{"id":131539087,"node_id":"MDEwOlJlcG9zaXRvcnkxMzE1MzkwODc=","name":"rubocop","full_name":"kwstannard/rubocop","owner":{"login":"kwstannard","id":1151753,"node_id":"MDQ6VXNlcjExNTE3NTM=","avatar_url":"https://avatars1.githubusercontent.com/u/1151753?v=4","gravatar_id":"","url":"https://api.github.com/users/kwstannard","html_url":"https://github.com/kwstannard","followers_url":"https://api.github.com/users/kwstannard/followers","following_url":"https://api.github.com/users/kwstannard/following{/other_user}","gists_url":"https://api.github.com/users/kwstannard/gists{/gist_id}","starred_url":"https://api.github.com/users/kwstannard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwstannard/subscriptions","organizations_url":"https://api.github.com/users/kwstannard/orgs","repos_url":"https://api.github.com/users/kwstannard/repos","events_url":"https://api.github.com/users/kwstannard/events{/privacy}","received_events_url":"https://api.github.com/users/kwstannard/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kwstannard/rubocop","description":"A Ruby static code analyzer, based on the community Ruby style guide.","fork":true,"url":"https://api.github.com/repos/kwstannard/rubocop","forks_url":"https://api.github.com/repos/kwstannard/rubocop/forks","keys_url":"https://api.github.com/repos/kwstannard/rubocop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kwstannard/rubocop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kwstannard/rubocop/teams","hooks_url":"https://api.github.com/repos/kwstannard/rubocop/hooks","issue_events_url":"https://api.github.com/repos/kwstannard/rubocop/issues/events{/number}","events_url":"https://api.github.com/repos/kwstannard/rubocop/events","assignees_url":"https://api.github.com/repos/kwstannard/rubocop/assignees{/user}","branches_url":"https://api.github.com/repos/kwstannard/rubocop/branches{/branch}","tags_url":"https://api.github.com/repos/kwstannard/rubocop/tags","blobs_url":"https://api.github.com/repos/kwstannard/rubocop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kwstannard/rubocop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kwstannard/rubocop/git/refs{/sha}","trees_url":"https://api.github.com/repos/kwstannard/rubocop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kwstannard/rubocop/statuses/{sha}","languages_url":"https://api.github.com/repos/kwstannard/rubocop/languages","stargazers_url":"https://api.github.com/repos/kwstannard/rubocop/stargazers","contributors_url":"https://api.github.com/repos/kwstannard/rubocop/contributors","subscribers_url":"https://api.github.com/repos/kwstannard/rubocop/subscribers","subscription_url":"https://api.github.com/repos/kwstannard/rubocop/subscription","commits_url":"https://api.github.com/repos/kwstannard/rubocop/commits{/sha}","git_commits_url":"https://api.github.com/repos/kwstannard/rubocop/git/commits{/sha}","comments_url":"https://api.github.com/repos/kwstannard/rubocop/comments{/number}","issue_comment_url":"https://api.github.com/repos/kwstannard/rubocop/issues/comments{/number}","contents_url":"https://api.github.com/repos/kwstannard/rubocop/contents/{+path}","compare_url":"https://api.github.com/repos/kwstannard/rubocop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kwstannard/rubocop/merges","archive_url":"https://api.github.com/repos/kwstannard/rubocop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kwstannard/rubocop/downloads","issues_url":"https://api.github.com/repos/kwstannard/rubocop/issues{/number}","pulls_url":"https://api.github.com/repos/kwstannard/rubocop/pulls{/number}","milestones_url":"https://api.github.com/repos/kwstannard/rubocop/milestones{/number}","notifications_url":"https://api.github.com/repos/kwstannard/rubocop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kwstannard/rubocop/labels{/name}","releases_url":"https://api.github.com/repos/kwstannard/rubocop/releases{/id}","deployments_url":"https://api.github.com/repos/kwstannard/rubocop/deployments","created_at":"2018-04-29T23:46:52Z","updated_at":"2018-05-31T07:00:45Z","pushed_at":"2018-04-30T01:43:34Z","git_url":"git://github.com/kwstannard/rubocop.git","ssh_url":"git@github.com:kwstannard/rubocop.git","clone_url":"https://github.com/kwstannard/rubocop.git","svn_url":"https://github.com/kwstannard/rubocop","homepage":"http://rubocop.readthedocs.io","size":20960,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kwstannard/rubocop/pulls/1"},"html":{"href":"https://github.com/kwstannard/rubocop/pull/1"},"issue":{"href":"https://api.github.com/repos/kwstannard/rubocop/issues/1"},"comments":{"href":"https://api.github.com/repos/kwstannard/rubocop/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/kwstannard/rubocop/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/kwstannard/rubocop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kwstannard/rubocop/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/kwstannard/rubocop/statuses/9270afbfbb0960beabe54375f83e9882932feb88"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":149,"deletions":0,"changed_files":6}}
{"actor":{"display_login":"kwstannard"}}