{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/klappradla/im_graetzl/pulls/2","id":39099166,"html_url":"https://github.com/klappradla/im_graetzl/pull/2","diff_url":"https://github.com/klappradla/im_graetzl/pull/2.diff","patch_url":"https://github.com/klappradla/im_graetzl/pull/2.patch","issue_url":"https://api.github.com/repos/klappradla/im_graetzl/issues/2","number":2,"state":"open","locked":false,"title":"Add website notifications scope for user model","user":{"login":"tawan","id":6555,"avatar_url":"https://avatars.githubusercontent.com/u/6555?v=3","gravatar_id":"","url":"https://api.github.com/users/tawan","html_url":"https://github.com/tawan","followers_url":"https://api.github.com/users/tawan/followers","following_url":"https://api.github.com/users/tawan/following{/other_user}","gists_url":"https://api.github.com/users/tawan/gists{/gist_id}","starred_url":"https://api.github.com/users/tawan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tawan/subscriptions","organizations_url":"https://api.github.com/users/tawan/orgs","repos_url":"https://api.github.com/users/tawan/repos","events_url":"https://api.github.com/users/tawan/events{/privacy}","received_events_url":"https://api.github.com/users/tawan/received_events","type":"User","site_admin":false},"body":"Notifications can be enabled for users by adding a key to the\r\nnew 'enabled_website_notifications' field of the users model.\r\nThis field is an array type.\r\n\r\nThe User#website_notifications scope is rather complex but retrieves\r\nall enabled notifications from the activities table at once.","created_at":"2015-07-02T16:07:54Z","updated_at":"2015-07-02T16:07:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/klappradla/im_graetzl/pulls/2/commits","review_comments_url":"https://api.github.com/repos/klappradla/im_graetzl/pulls/2/comments","review_comment_url":"https://api.github.com/repos/klappradla/im_graetzl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/klappradla/im_graetzl/issues/2/comments","statuses_url":"https://api.github.com/repos/klappradla/im_graetzl/statuses/a5817dcf623d3616e7aaf488372d8351312fc878","head":{"label":"tawan:notif_with_activity_keys","ref":"notif_with_activity_keys","sha":"a5817dcf623d3616e7aaf488372d8351312fc878","user":{"login":"tawan","id":6555,"avatar_url":"https://avatars.githubusercontent.com/u/6555?v=3","gravatar_id":"","url":"https://api.github.com/users/tawan","html_url":"https://github.com/tawan","followers_url":"https://api.github.com/users/tawan/followers","following_url":"https://api.github.com/users/tawan/following{/other_user}","gists_url":"https://api.github.com/users/tawan/gists{/gist_id}","starred_url":"https://api.github.com/users/tawan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tawan/subscriptions","organizations_url":"https://api.github.com/users/tawan/orgs","repos_url":"https://api.github.com/users/tawan/repos","events_url":"https://api.github.com/users/tawan/events{/privacy}","received_events_url":"https://api.github.com/users/tawan/received_events","type":"User","site_admin":false},"repo":{"id":36495120,"name":"im_graetzl","full_name":"tawan/im_graetzl","owner":{"login":"tawan","id":6555,"avatar_url":"https://avatars.githubusercontent.com/u/6555?v=3","gravatar_id":"","url":"https://api.github.com/users/tawan","html_url":"https://github.com/tawan","followers_url":"https://api.github.com/users/tawan/followers","following_url":"https://api.github.com/users/tawan/following{/other_user}","gists_url":"https://api.github.com/users/tawan/gists{/gist_id}","starred_url":"https://api.github.com/users/tawan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tawan/subscriptions","organizations_url":"https://api.github.com/users/tawan/orgs","repos_url":"https://api.github.com/users/tawan/repos","events_url":"https://api.github.com/users/tawan/events{/privacy}","received_events_url":"https://api.github.com/users/tawan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tawan/im_graetzl","description":"social network site vienna","fork":true,"url":"https://api.github.com/repos/tawan/im_graetzl","forks_url":"https://api.github.com/repos/tawan/im_graetzl/forks","keys_url":"https://api.github.com/repos/tawan/im_graetzl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tawan/im_graetzl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tawan/im_graetzl/teams","hooks_url":"https://api.github.com/repos/tawan/im_graetzl/hooks","issue_events_url":"https://api.github.com/repos/tawan/im_graetzl/issues/events{/number}","events_url":"https://api.github.com/repos/tawan/im_graetzl/events","assignees_url":"https://api.github.com/repos/tawan/im_graetzl/assignees{/user}","branches_url":"https://api.github.com/repos/tawan/im_graetzl/branches{/branch}","tags_url":"https://api.github.com/repos/tawan/im_graetzl/tags","blobs_url":"https://api.github.com/repos/tawan/im_graetzl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tawan/im_graetzl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tawan/im_graetzl/git/refs{/sha}","trees_url":"https://api.github.com/repos/tawan/im_graetzl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tawan/im_graetzl/statuses/{sha}","languages_url":"https://api.github.com/repos/tawan/im_graetzl/languages","stargazers_url":"https://api.github.com/repos/tawan/im_graetzl/stargazers","contributors_url":"https://api.github.com/repos/tawan/im_graetzl/contributors","subscribers_url":"https://api.github.com/repos/tawan/im_graetzl/subscribers","subscription_url":"https://api.github.com/repos/tawan/im_graetzl/subscription","commits_url":"https://api.github.com/repos/tawan/im_graetzl/commits{/sha}","git_commits_url":"https://api.github.com/repos/tawan/im_graetzl/git/commits{/sha}","comments_url":"https://api.github.com/repos/tawan/im_graetzl/comments{/number}","issue_comment_url":"https://api.github.com/repos/tawan/im_graetzl/issues/comments{/number}","contents_url":"https://api.github.com/repos/tawan/im_graetzl/contents/{+path}","compare_url":"https://api.github.com/repos/tawan/im_graetzl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tawan/im_graetzl/merges","archive_url":"https://api.github.com/repos/tawan/im_graetzl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tawan/im_graetzl/downloads","issues_url":"https://api.github.com/repos/tawan/im_graetzl/issues{/number}","pulls_url":"https://api.github.com/repos/tawan/im_graetzl/pulls{/number}","milestones_url":"https://api.github.com/repos/tawan/im_graetzl/milestones{/number}","notifications_url":"https://api.github.com/repos/tawan/im_graetzl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tawan/im_graetzl/labels{/name}","releases_url":"https://api.github.com/repos/tawan/im_graetzl/releases{/id}","created_at":"2015-05-29T09:38:23Z","updated_at":"2015-05-29T09:38:24Z","pushed_at":"2015-07-02T16:07:24Z","git_url":"git://github.com/tawan/im_graetzl.git","ssh_url":"git@github.com:tawan/im_graetzl.git","clone_url":"https://github.com/tawan/im_graetzl.git","svn_url":"https://github.com/tawan/im_graetzl","homepage":"http://staging-imgraetzl.rhcloud.com","size":3173,"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":"klappradla:master","ref":"master","sha":"ea43a2d8f980cd0c9f1b954fa8a0ea44555a6d45","user":{"login":"klappradla","id":3491815,"avatar_url":"https://avatars.githubusercontent.com/u/3491815?v=3","gravatar_id":"","url":"https://api.github.com/users/klappradla","html_url":"https://github.com/klappradla","followers_url":"https://api.github.com/users/klappradla/followers","following_url":"https://api.github.com/users/klappradla/following{/other_user}","gists_url":"https://api.github.com/users/klappradla/gists{/gist_id}","starred_url":"https://api.github.com/users/klappradla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klappradla/subscriptions","organizations_url":"https://api.github.com/users/klappradla/orgs","repos_url":"https://api.github.com/users/klappradla/repos","events_url":"https://api.github.com/users/klappradla/events{/privacy}","received_events_url":"https://api.github.com/users/klappradla/received_events","type":"User","site_admin":false},"repo":{"id":32084673,"name":"im_graetzl","full_name":"klappradla/im_graetzl","owner":{"login":"klappradla","id":3491815,"avatar_url":"https://avatars.githubusercontent.com/u/3491815?v=3","gravatar_id":"","url":"https://api.github.com/users/klappradla","html_url":"https://github.com/klappradla","followers_url":"https://api.github.com/users/klappradla/followers","following_url":"https://api.github.com/users/klappradla/following{/other_user}","gists_url":"https://api.github.com/users/klappradla/gists{/gist_id}","starred_url":"https://api.github.com/users/klappradla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klappradla/subscriptions","organizations_url":"https://api.github.com/users/klappradla/orgs","repos_url":"https://api.github.com/users/klappradla/repos","events_url":"https://api.github.com/users/klappradla/events{/privacy}","received_events_url":"https://api.github.com/users/klappradla/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/klappradla/im_graetzl","description":"social network app vienna","fork":false,"url":"https://api.github.com/repos/klappradla/im_graetzl","forks_url":"https://api.github.com/repos/klappradla/im_graetzl/forks","keys_url":"https://api.github.com/repos/klappradla/im_graetzl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/klappradla/im_graetzl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/klappradla/im_graetzl/teams","hooks_url":"https://api.github.com/repos/klappradla/im_graetzl/hooks","issue_events_url":"https://api.github.com/repos/klappradla/im_graetzl/issues/events{/number}","events_url":"https://api.github.com/repos/klappradla/im_graetzl/events","assignees_url":"https://api.github.com/repos/klappradla/im_graetzl/assignees{/user}","branches_url":"https://api.github.com/repos/klappradla/im_graetzl/branches{/branch}","tags_url":"https://api.github.com/repos/klappradla/im_graetzl/tags","blobs_url":"https://api.github.com/repos/klappradla/im_graetzl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/klappradla/im_graetzl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/klappradla/im_graetzl/git/refs{/sha}","trees_url":"https://api.github.com/repos/klappradla/im_graetzl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/klappradla/im_graetzl/statuses/{sha}","languages_url":"https://api.github.com/repos/klappradla/im_graetzl/languages","stargazers_url":"https://api.github.com/repos/klappradla/im_graetzl/stargazers","contributors_url":"https://api.github.com/repos/klappradla/im_graetzl/contributors","subscribers_url":"https://api.github.com/repos/klappradla/im_graetzl/subscribers","subscription_url":"https://api.github.com/repos/klappradla/im_graetzl/subscription","commits_url":"https://api.github.com/repos/klappradla/im_graetzl/commits{/sha}","git_commits_url":"https://api.github.com/repos/klappradla/im_graetzl/git/commits{/sha}","comments_url":"https://api.github.com/repos/klappradla/im_graetzl/comments{/number}","issue_comment_url":"https://api.github.com/repos/klappradla/im_graetzl/issues/comments{/number}","contents_url":"https://api.github.com/repos/klappradla/im_graetzl/contents/{+path}","compare_url":"https://api.github.com/repos/klappradla/im_graetzl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/klappradla/im_graetzl/merges","archive_url":"https://api.github.com/repos/klappradla/im_graetzl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/klappradla/im_graetzl/downloads","issues_url":"https://api.github.com/repos/klappradla/im_graetzl/issues{/number}","pulls_url":"https://api.github.com/repos/klappradla/im_graetzl/pulls{/number}","milestones_url":"https://api.github.com/repos/klappradla/im_graetzl/milestones{/number}","notifications_url":"https://api.github.com/repos/klappradla/im_graetzl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/klappradla/im_graetzl/labels{/name}","releases_url":"https://api.github.com/repos/klappradla/im_graetzl/releases{/id}","created_at":"2015-03-12T15:30:22Z","updated_at":"2015-06-23T14:51:16Z","pushed_at":"2015-07-02T09:13:23Z","git_url":"git://github.com/klappradla/im_graetzl.git","ssh_url":"git@github.com:klappradla/im_graetzl.git","clone_url":"https://github.com/klappradla/im_graetzl.git","svn_url":"https://github.com/klappradla/im_graetzl","homepage":"","size":40429,"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":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/klappradla/im_graetzl/pulls/2"},"html":{"href":"https://github.com/klappradla/im_graetzl/pull/2"},"issue":{"href":"https://api.github.com/repos/klappradla/im_graetzl/issues/2"},"comments":{"href":"https://api.github.com/repos/klappradla/im_graetzl/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/klappradla/im_graetzl/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/klappradla/im_graetzl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/klappradla/im_graetzl/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/klappradla/im_graetzl/statuses/a5817dcf623d3616e7aaf488372d8351312fc878"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":300,"deletions":14,"changed_files":7}}