{"action":"created","comment":{"url":"https://api.github.com/repos/artsy/aprb/pulls/comments/75244534","id":75244534,"diff_hunk":"@@ -1,7 +1,14 @@\n+require IEx","path":"test/api/slack_test.exs","position":1,"original_position":1,"commit_id":"10f2d4800c35f51062b384e91ab7ff72aba37b79","original_commit_id":"10f2d4800c35f51062b384e91ab7ff72aba37b79","user":{"login":"dblock","id":542335,"avatar_url":"https://avatars.githubusercontent.com/u/542335?v=3","gravatar_id":"","url":"https://api.github.com/users/dblock","html_url":"https://github.com/dblock","followers_url":"https://api.github.com/users/dblock/followers","following_url":"https://api.github.com/users/dblock/following{/other_user}","gists_url":"https://api.github.com/users/dblock/gists{/gist_id}","starred_url":"https://api.github.com/users/dblock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dblock/subscriptions","organizations_url":"https://api.github.com/users/dblock/orgs","repos_url":"https://api.github.com/users/dblock/repos","events_url":"https://api.github.com/users/dblock/events{/privacy}","received_events_url":"https://api.github.com/users/dblock/received_events","type":"User","site_admin":false},"body":"Not needed.","created_at":"2016-08-18T03:38:16Z","updated_at":"2016-08-18T03:38:16Z","html_url":"https://github.com/artsy/aprb/pull/8#discussion_r75244534","pull_request_url":"https://api.github.com/repos/artsy/aprb/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/artsy/aprb/pulls/comments/75244534"},"html":{"href":"https://github.com/artsy/aprb/pull/8#discussion_r75244534"},"pull_request":{"href":"https://api.github.com/repos/artsy/aprb/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/artsy/aprb/pulls/8","id":81751701,"html_url":"https://github.com/artsy/aprb/pull/8","diff_url":"https://github.com/artsy/aprb/pull/8.diff","patch_url":"https://github.com/artsy/aprb/pull/8.patch","issue_url":"https://api.github.com/repos/artsy/aprb/issues/8","number":8,"state":"open","locked":false,"title":"Subscription logic","user":{"login":"ashkan18","id":1230819,"avatar_url":"https://avatars.githubusercontent.com/u/1230819?v=3","gravatar_id":"","url":"https://api.github.com/users/ashkan18","html_url":"https://github.com/ashkan18","followers_url":"https://api.github.com/users/ashkan18/followers","following_url":"https://api.github.com/users/ashkan18/following{/other_user}","gists_url":"https://api.github.com/users/ashkan18/gists{/gist_id}","starred_url":"https://api.github.com/users/ashkan18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashkan18/subscriptions","organizations_url":"https://api.github.com/users/ashkan18/orgs","repos_url":"https://api.github.com/users/ashkan18/repos","events_url":"https://api.github.com/users/ashkan18/events{/privacy}","received_events_url":"https://api.github.com/users/ashkan18/received_events","type":"User","site_admin":false},"body":"\r\n- Add logic to subscribe/unsubscribe. \r\n- Added test for subscribe. \r\n- Add logic for sending events to slack based on channel subscriptions.\r\n- Switched to check subscriptions based on channel and not user\r\n\r\n# Todo:\r\n- Add more test (unsubscribe, list, etc)\r\n- Fix issue with test DB, test db doesn't cleanup after each test, so we end up with many topics.\r\n- Add unique constraint on `name` to `Topics` ","created_at":"2016-08-18T03:24:43Z","updated_at":"2016-08-18T03:38:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c18a2c1622715671c63b58cb8cab6b5f18829dc3","assignee":{"login":"dblock","id":542335,"avatar_url":"https://avatars.githubusercontent.com/u/542335?v=3","gravatar_id":"","url":"https://api.github.com/users/dblock","html_url":"https://github.com/dblock","followers_url":"https://api.github.com/users/dblock/followers","following_url":"https://api.github.com/users/dblock/following{/other_user}","gists_url":"https://api.github.com/users/dblock/gists{/gist_id}","starred_url":"https://api.github.com/users/dblock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dblock/subscriptions","organizations_url":"https://api.github.com/users/dblock/orgs","repos_url":"https://api.github.com/users/dblock/repos","events_url":"https://api.github.com/users/dblock/events{/privacy}","received_events_url":"https://api.github.com/users/dblock/received_events","type":"User","site_admin":false},"assignees":[{"login":"dblock","id":542335,"avatar_url":"https://avatars.githubusercontent.com/u/542335?v=3","gravatar_id":"","url":"https://api.github.com/users/dblock","html_url":"https://github.com/dblock","followers_url":"https://api.github.com/users/dblock/followers","following_url":"https://api.github.com/users/dblock/following{/other_user}","gists_url":"https://api.github.com/users/dblock/gists{/gist_id}","starred_url":"https://api.github.com/users/dblock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dblock/subscriptions","organizations_url":"https://api.github.com/users/dblock/orgs","repos_url":"https://api.github.com/users/dblock/repos","events_url":"https://api.github.com/users/dblock/events{/privacy}","received_events_url":"https://api.github.com/users/dblock/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/artsy/aprb/pulls/8/commits","review_comments_url":"https://api.github.com/repos/artsy/aprb/pulls/8/comments","review_comment_url":"https://api.github.com/repos/artsy/aprb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/artsy/aprb/issues/8/comments","statuses_url":"https://api.github.com/repos/artsy/aprb/statuses/10f2d4800c35f51062b384e91ab7ff72aba37b79","head":{"label":"ashkan18:subscribe","ref":"subscribe","sha":"10f2d4800c35f51062b384e91ab7ff72aba37b79","user":{"login":"ashkan18","id":1230819,"avatar_url":"https://avatars.githubusercontent.com/u/1230819?v=3","gravatar_id":"","url":"https://api.github.com/users/ashkan18","html_url":"https://github.com/ashkan18","followers_url":"https://api.github.com/users/ashkan18/followers","following_url":"https://api.github.com/users/ashkan18/following{/other_user}","gists_url":"https://api.github.com/users/ashkan18/gists{/gist_id}","starred_url":"https://api.github.com/users/ashkan18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashkan18/subscriptions","organizations_url":"https://api.github.com/users/ashkan18/orgs","repos_url":"https://api.github.com/users/ashkan18/repos","events_url":"https://api.github.com/users/ashkan18/events{/privacy}","received_events_url":"https://api.github.com/users/ashkan18/received_events","type":"User","site_admin":false},"repo":{"id":65951909,"name":"aprb","full_name":"ashkan18/aprb","owner":{"login":"ashkan18","id":1230819,"avatar_url":"https://avatars.githubusercontent.com/u/1230819?v=3","gravatar_id":"","url":"https://api.github.com/users/ashkan18","html_url":"https://github.com/ashkan18","followers_url":"https://api.github.com/users/ashkan18/followers","following_url":"https://api.github.com/users/ashkan18/following{/other_user}","gists_url":"https://api.github.com/users/ashkan18/gists{/gist_id}","starred_url":"https://api.github.com/users/ashkan18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashkan18/subscriptions","organizations_url":"https://api.github.com/users/ashkan18/orgs","repos_url":"https://api.github.com/users/ashkan18/repos","events_url":"https://api.github.com/users/ashkan18/events{/privacy}","received_events_url":"https://api.github.com/users/ashkan18/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ashkan18/aprb","description":"Artsy public radio notifications in Slack.","fork":true,"url":"https://api.github.com/repos/ashkan18/aprb","forks_url":"https://api.github.com/repos/ashkan18/aprb/forks","keys_url":"https://api.github.com/repos/ashkan18/aprb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ashkan18/aprb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ashkan18/aprb/teams","hooks_url":"https://api.github.com/repos/ashkan18/aprb/hooks","issue_events_url":"https://api.github.com/repos/ashkan18/aprb/issues/events{/number}","events_url":"https://api.github.com/repos/ashkan18/aprb/events","assignees_url":"https://api.github.com/repos/ashkan18/aprb/assignees{/user}","branches_url":"https://api.github.com/repos/ashkan18/aprb/branches{/branch}","tags_url":"https://api.github.com/repos/ashkan18/aprb/tags","blobs_url":"https://api.github.com/repos/ashkan18/aprb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ashkan18/aprb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ashkan18/aprb/git/refs{/sha}","trees_url":"https://api.github.com/repos/ashkan18/aprb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ashkan18/aprb/statuses/{sha}","languages_url":"https://api.github.com/repos/ashkan18/aprb/languages","stargazers_url":"https://api.github.com/repos/ashkan18/aprb/stargazers","contributors_url":"https://api.github.com/repos/ashkan18/aprb/contributors","subscribers_url":"https://api.github.com/repos/ashkan18/aprb/subscribers","subscription_url":"https://api.github.com/repos/ashkan18/aprb/subscription","commits_url":"https://api.github.com/repos/ashkan18/aprb/commits{/sha}","git_commits_url":"https://api.github.com/repos/ashkan18/aprb/git/commits{/sha}","comments_url":"https://api.github.com/repos/ashkan18/aprb/comments{/number}","issue_comment_url":"https://api.github.com/repos/ashkan18/aprb/issues/comments{/number}","contents_url":"https://api.github.com/repos/ashkan18/aprb/contents/{+path}","compare_url":"https://api.github.com/repos/ashkan18/aprb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ashkan18/aprb/merges","archive_url":"https://api.github.com/repos/ashkan18/aprb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ashkan18/aprb/downloads","issues_url":"https://api.github.com/repos/ashkan18/aprb/issues{/number}","pulls_url":"https://api.github.com/repos/ashkan18/aprb/pulls{/number}","milestones_url":"https://api.github.com/repos/ashkan18/aprb/milestones{/number}","notifications_url":"https://api.github.com/repos/ashkan18/aprb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ashkan18/aprb/labels{/name}","releases_url":"https://api.github.com/repos/ashkan18/aprb/releases{/id}","deployments_url":"https://api.github.com/repos/ashkan18/aprb/deployments","created_at":"2016-08-18T00:32:56Z","updated_at":"2016-08-18T00:32:57Z","pushed_at":"2016-08-18T03:22:02Z","git_url":"git://github.com/ashkan18/aprb.git","ssh_url":"git@github.com:ashkan18/aprb.git","clone_url":"https://github.com/ashkan18/aprb.git","svn_url":"https://github.com/ashkan18/aprb","homepage":"","size":50,"stargazers_count":0,"watchers_count":0,"language":"Elixir","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":"artsy:master","ref":"master","sha":"2c5bc86faa2aaf13cdb034bfbcf22bc8d1f9dcd6","user":{"login":"artsy","id":546231,"avatar_url":"https://avatars.githubusercontent.com/u/546231?v=3","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"repo":{"id":65926683,"name":"aprb","full_name":"artsy/aprb","owner":{"login":"artsy","id":546231,"avatar_url":"https://avatars.githubusercontent.com/u/546231?v=3","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/artsy/aprb","description":"Artsy public radio notifications in Slack.","fork":false,"url":"https://api.github.com/repos/artsy/aprb","forks_url":"https://api.github.com/repos/artsy/aprb/forks","keys_url":"https://api.github.com/repos/artsy/aprb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artsy/aprb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artsy/aprb/teams","hooks_url":"https://api.github.com/repos/artsy/aprb/hooks","issue_events_url":"https://api.github.com/repos/artsy/aprb/issues/events{/number}","events_url":"https://api.github.com/repos/artsy/aprb/events","assignees_url":"https://api.github.com/repos/artsy/aprb/assignees{/user}","branches_url":"https://api.github.com/repos/artsy/aprb/branches{/branch}","tags_url":"https://api.github.com/repos/artsy/aprb/tags","blobs_url":"https://api.github.com/repos/artsy/aprb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artsy/aprb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artsy/aprb/git/refs{/sha}","trees_url":"https://api.github.com/repos/artsy/aprb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artsy/aprb/statuses/{sha}","languages_url":"https://api.github.com/repos/artsy/aprb/languages","stargazers_url":"https://api.github.com/repos/artsy/aprb/stargazers","contributors_url":"https://api.github.com/repos/artsy/aprb/contributors","subscribers_url":"https://api.github.com/repos/artsy/aprb/subscribers","subscription_url":"https://api.github.com/repos/artsy/aprb/subscription","commits_url":"https://api.github.com/repos/artsy/aprb/commits{/sha}","git_commits_url":"https://api.github.com/repos/artsy/aprb/git/commits{/sha}","comments_url":"https://api.github.com/repos/artsy/aprb/comments{/number}","issue_comment_url":"https://api.github.com/repos/artsy/aprb/issues/comments{/number}","contents_url":"https://api.github.com/repos/artsy/aprb/contents/{+path}","compare_url":"https://api.github.com/repos/artsy/aprb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artsy/aprb/merges","archive_url":"https://api.github.com/repos/artsy/aprb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artsy/aprb/downloads","issues_url":"https://api.github.com/repos/artsy/aprb/issues{/number}","pulls_url":"https://api.github.com/repos/artsy/aprb/pulls{/number}","milestones_url":"https://api.github.com/repos/artsy/aprb/milestones{/number}","notifications_url":"https://api.github.com/repos/artsy/aprb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artsy/aprb/labels{/name}","releases_url":"https://api.github.com/repos/artsy/aprb/releases{/id}","deployments_url":"https://api.github.com/repos/artsy/aprb/deployments","created_at":"2016-08-17T17:07:32Z","updated_at":"2016-08-17T22:46:44Z","pushed_at":"2016-08-18T03:24:43Z","git_url":"git://github.com/artsy/aprb.git","ssh_url":"git@github.com:artsy/aprb.git","clone_url":"https://github.com/artsy/aprb.git","svn_url":"https://github.com/artsy/aprb","homepage":"","size":48,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/artsy/aprb/pulls/8"},"html":{"href":"https://github.com/artsy/aprb/pull/8"},"issue":{"href":"https://api.github.com/repos/artsy/aprb/issues/8"},"comments":{"href":"https://api.github.com/repos/artsy/aprb/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/artsy/aprb/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/artsy/aprb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/artsy/aprb/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/artsy/aprb/statuses/10f2d4800c35f51062b384e91ab7ff72aba37b79"}}}}
{"actor":{"display_login":"dblock"}}