{"action":"created","comment":{"url":"https://api.github.com/repos/code-mancers/dockup/pulls/comments/71080552","id":71080552,"diff_hunk":"@@ -0,0 +1,23 @@\n+defmodule DockupUi.DeploymentChannelTest do\n+  use DockupUi.ChannelCase\n+\n+  alias DockupUi.DeploymentChannel\n+\n+  test \"new_deployment broadcasts a new_deployment event\" do\n+    DockupUi.Endpoint.subscribe(\"deployments:all\")\n+    DeploymentChannel.new_deployment(%{foo: \"bar\"})\n+    assert_receive %Phoenix.Socket.Broadcast{\n+      topic: \"deployments:all\",\n+      event: \"new_deployment\",","path":"apps/dockup_ui/test/channels/deployment_channel_test.exs","position":11,"original_position":11,"commit_id":"040dce9a932a00422d68d8187f970698e597bd12","original_commit_id":"040dce9a932a00422d68d8187f970698e597bd12","user":{"login":"iffyuva","id":1108398,"avatar_url":"https://avatars.githubusercontent.com/u/1108398?v=3","gravatar_id":"","url":"https://api.github.com/users/iffyuva","html_url":"https://github.com/iffyuva","followers_url":"https://api.github.com/users/iffyuva/followers","following_url":"https://api.github.com/users/iffyuva/following{/other_user}","gists_url":"https://api.github.com/users/iffyuva/gists{/gist_id}","starred_url":"https://api.github.com/users/iffyuva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iffyuva/subscriptions","organizations_url":"https://api.github.com/users/iffyuva/orgs","repos_url":"https://api.github.com/users/iffyuva/repos","events_url":"https://api.github.com/users/iffyuva/events{/privacy}","received_events_url":"https://api.github.com/users/iffyuva/received_events","type":"User","site_admin":false},"body":"can't we just say: `topic: 'deployments', event: 'created', payload: { id: 10 }` restful way?","created_at":"2016-07-17T10:57:39Z","updated_at":"2016-07-17T10:57:39Z","html_url":"https://github.com/code-mancers/dockup/pull/65#discussion_r71080552","pull_request_url":"https://api.github.com/repos/code-mancers/dockup/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/code-mancers/dockup/pulls/comments/71080552"},"html":{"href":"https://github.com/code-mancers/dockup/pull/65#discussion_r71080552"},"pull_request":{"href":"https://api.github.com/repos/code-mancers/dockup/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/code-mancers/dockup/pulls/65","id":77732501,"html_url":"https://github.com/code-mancers/dockup/pull/65","diff_url":"https://github.com/code-mancers/dockup/pull/65.diff","patch_url":"https://github.com/code-mancers/dockup/pull/65.patch","issue_url":"https://api.github.com/repos/code-mancers/dockup/issues/65","number":65,"state":"open","locked":false,"title":"Add test for channel events","user":{"login":"emilsoman","id":1707078,"avatar_url":"https://avatars.githubusercontent.com/u/1707078?v=3","gravatar_id":"","url":"https://api.github.com/users/emilsoman","html_url":"https://github.com/emilsoman","followers_url":"https://api.github.com/users/emilsoman/followers","following_url":"https://api.github.com/users/emilsoman/following{/other_user}","gists_url":"https://api.github.com/users/emilsoman/gists{/gist_id}","starred_url":"https://api.github.com/users/emilsoman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilsoman/subscriptions","organizations_url":"https://api.github.com/users/emilsoman/orgs","repos_url":"https://api.github.com/users/emilsoman/repos","events_url":"https://api.github.com/users/emilsoman/events{/privacy}","received_events_url":"https://api.github.com/users/emilsoman/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-17T10:50:52Z","updated_at":"2016-07-17T10:57:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3021a8f2562d72b0877359ceabda627f2daea153","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/code-mancers/dockup/pulls/65/commits","review_comments_url":"https://api.github.com/repos/code-mancers/dockup/pulls/65/comments","review_comment_url":"https://api.github.com/repos/code-mancers/dockup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/code-mancers/dockup/issues/65/comments","statuses_url":"https://api.github.com/repos/code-mancers/dockup/statuses/040dce9a932a00422d68d8187f970698e597bd12","head":{"label":"code-mancers:new-deployment-event","ref":"new-deployment-event","sha":"040dce9a932a00422d68d8187f970698e597bd12","user":{"login":"code-mancers","id":1137275,"avatar_url":"https://avatars.githubusercontent.com/u/1137275?v=3","gravatar_id":"","url":"https://api.github.com/users/code-mancers","html_url":"https://github.com/code-mancers","followers_url":"https://api.github.com/users/code-mancers/followers","following_url":"https://api.github.com/users/code-mancers/following{/other_user}","gists_url":"https://api.github.com/users/code-mancers/gists{/gist_id}","starred_url":"https://api.github.com/users/code-mancers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-mancers/subscriptions","organizations_url":"https://api.github.com/users/code-mancers/orgs","repos_url":"https://api.github.com/users/code-mancers/repos","events_url":"https://api.github.com/users/code-mancers/events{/privacy}","received_events_url":"https://api.github.com/users/code-mancers/received_events","type":"Organization","site_admin":false},"repo":{"id":50924387,"name":"dockup","full_name":"code-mancers/dockup","owner":{"login":"code-mancers","id":1137275,"avatar_url":"https://avatars.githubusercontent.com/u/1137275?v=3","gravatar_id":"","url":"https://api.github.com/users/code-mancers","html_url":"https://github.com/code-mancers","followers_url":"https://api.github.com/users/code-mancers/followers","following_url":"https://api.github.com/users/code-mancers/following{/other_user}","gists_url":"https://api.github.com/users/code-mancers/gists{/gist_id}","starred_url":"https://api.github.com/users/code-mancers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-mancers/subscriptions","organizations_url":"https://api.github.com/users/code-mancers/orgs","repos_url":"https://api.github.com/users/code-mancers/repos","events_url":"https://api.github.com/users/code-mancers/events{/privacy}","received_events_url":"https://api.github.com/users/code-mancers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/code-mancers/dockup","description":"chatops_deployer redone in Elixir to make use of parallel builds and fault tolerance","fork":false,"url":"https://api.github.com/repos/code-mancers/dockup","forks_url":"https://api.github.com/repos/code-mancers/dockup/forks","keys_url":"https://api.github.com/repos/code-mancers/dockup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-mancers/dockup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-mancers/dockup/teams","hooks_url":"https://api.github.com/repos/code-mancers/dockup/hooks","issue_events_url":"https://api.github.com/repos/code-mancers/dockup/issues/events{/number}","events_url":"https://api.github.com/repos/code-mancers/dockup/events","assignees_url":"https://api.github.com/repos/code-mancers/dockup/assignees{/user}","branches_url":"https://api.github.com/repos/code-mancers/dockup/branches{/branch}","tags_url":"https://api.github.com/repos/code-mancers/dockup/tags","blobs_url":"https://api.github.com/repos/code-mancers/dockup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-mancers/dockup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-mancers/dockup/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-mancers/dockup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-mancers/dockup/statuses/{sha}","languages_url":"https://api.github.com/repos/code-mancers/dockup/languages","stargazers_url":"https://api.github.com/repos/code-mancers/dockup/stargazers","contributors_url":"https://api.github.com/repos/code-mancers/dockup/contributors","subscribers_url":"https://api.github.com/repos/code-mancers/dockup/subscribers","subscription_url":"https://api.github.com/repos/code-mancers/dockup/subscription","commits_url":"https://api.github.com/repos/code-mancers/dockup/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-mancers/dockup/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-mancers/dockup/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-mancers/dockup/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-mancers/dockup/contents/{+path}","compare_url":"https://api.github.com/repos/code-mancers/dockup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-mancers/dockup/merges","archive_url":"https://api.github.com/repos/code-mancers/dockup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-mancers/dockup/downloads","issues_url":"https://api.github.com/repos/code-mancers/dockup/issues{/number}","pulls_url":"https://api.github.com/repos/code-mancers/dockup/pulls{/number}","milestones_url":"https://api.github.com/repos/code-mancers/dockup/milestones{/number}","notifications_url":"https://api.github.com/repos/code-mancers/dockup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-mancers/dockup/labels{/name}","releases_url":"https://api.github.com/repos/code-mancers/dockup/releases{/id}","deployments_url":"https://api.github.com/repos/code-mancers/dockup/deployments","created_at":"2016-02-02T14:02:11Z","updated_at":"2016-06-14T03:43:38Z","pushed_at":"2016-07-17T10:50:54Z","git_url":"git://github.com/code-mancers/dockup.git","ssh_url":"git@github.com:code-mancers/dockup.git","clone_url":"https://github.com/code-mancers/dockup.git","svn_url":"https://github.com/code-mancers/dockup","homepage":null,"size":213,"stargazers_count":2,"watchers_count":2,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":2,"default_branch":"master"}},"base":{"label":"code-mancers:master","ref":"master","sha":"0d39574a59e40567d4ecbc06f0092259ce2627d1","user":{"login":"code-mancers","id":1137275,"avatar_url":"https://avatars.githubusercontent.com/u/1137275?v=3","gravatar_id":"","url":"https://api.github.com/users/code-mancers","html_url":"https://github.com/code-mancers","followers_url":"https://api.github.com/users/code-mancers/followers","following_url":"https://api.github.com/users/code-mancers/following{/other_user}","gists_url":"https://api.github.com/users/code-mancers/gists{/gist_id}","starred_url":"https://api.github.com/users/code-mancers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-mancers/subscriptions","organizations_url":"https://api.github.com/users/code-mancers/orgs","repos_url":"https://api.github.com/users/code-mancers/repos","events_url":"https://api.github.com/users/code-mancers/events{/privacy}","received_events_url":"https://api.github.com/users/code-mancers/received_events","type":"Organization","site_admin":false},"repo":{"id":50924387,"name":"dockup","full_name":"code-mancers/dockup","owner":{"login":"code-mancers","id":1137275,"avatar_url":"https://avatars.githubusercontent.com/u/1137275?v=3","gravatar_id":"","url":"https://api.github.com/users/code-mancers","html_url":"https://github.com/code-mancers","followers_url":"https://api.github.com/users/code-mancers/followers","following_url":"https://api.github.com/users/code-mancers/following{/other_user}","gists_url":"https://api.github.com/users/code-mancers/gists{/gist_id}","starred_url":"https://api.github.com/users/code-mancers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-mancers/subscriptions","organizations_url":"https://api.github.com/users/code-mancers/orgs","repos_url":"https://api.github.com/users/code-mancers/repos","events_url":"https://api.github.com/users/code-mancers/events{/privacy}","received_events_url":"https://api.github.com/users/code-mancers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/code-mancers/dockup","description":"chatops_deployer redone in Elixir to make use of parallel builds and fault tolerance","fork":false,"url":"https://api.github.com/repos/code-mancers/dockup","forks_url":"https://api.github.com/repos/code-mancers/dockup/forks","keys_url":"https://api.github.com/repos/code-mancers/dockup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-mancers/dockup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-mancers/dockup/teams","hooks_url":"https://api.github.com/repos/code-mancers/dockup/hooks","issue_events_url":"https://api.github.com/repos/code-mancers/dockup/issues/events{/number}","events_url":"https://api.github.com/repos/code-mancers/dockup/events","assignees_url":"https://api.github.com/repos/code-mancers/dockup/assignees{/user}","branches_url":"https://api.github.com/repos/code-mancers/dockup/branches{/branch}","tags_url":"https://api.github.com/repos/code-mancers/dockup/tags","blobs_url":"https://api.github.com/repos/code-mancers/dockup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-mancers/dockup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-mancers/dockup/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-mancers/dockup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-mancers/dockup/statuses/{sha}","languages_url":"https://api.github.com/repos/code-mancers/dockup/languages","stargazers_url":"https://api.github.com/repos/code-mancers/dockup/stargazers","contributors_url":"https://api.github.com/repos/code-mancers/dockup/contributors","subscribers_url":"https://api.github.com/repos/code-mancers/dockup/subscribers","subscription_url":"https://api.github.com/repos/code-mancers/dockup/subscription","commits_url":"https://api.github.com/repos/code-mancers/dockup/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-mancers/dockup/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-mancers/dockup/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-mancers/dockup/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-mancers/dockup/contents/{+path}","compare_url":"https://api.github.com/repos/code-mancers/dockup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-mancers/dockup/merges","archive_url":"https://api.github.com/repos/code-mancers/dockup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-mancers/dockup/downloads","issues_url":"https://api.github.com/repos/code-mancers/dockup/issues{/number}","pulls_url":"https://api.github.com/repos/code-mancers/dockup/pulls{/number}","milestones_url":"https://api.github.com/repos/code-mancers/dockup/milestones{/number}","notifications_url":"https://api.github.com/repos/code-mancers/dockup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-mancers/dockup/labels{/name}","releases_url":"https://api.github.com/repos/code-mancers/dockup/releases{/id}","deployments_url":"https://api.github.com/repos/code-mancers/dockup/deployments","created_at":"2016-02-02T14:02:11Z","updated_at":"2016-06-14T03:43:38Z","pushed_at":"2016-07-17T10:50:54Z","git_url":"git://github.com/code-mancers/dockup.git","ssh_url":"git@github.com:code-mancers/dockup.git","clone_url":"https://github.com/code-mancers/dockup.git","svn_url":"https://github.com/code-mancers/dockup","homepage":null,"size":213,"stargazers_count":2,"watchers_count":2,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/code-mancers/dockup/pulls/65"},"html":{"href":"https://github.com/code-mancers/dockup/pull/65"},"issue":{"href":"https://api.github.com/repos/code-mancers/dockup/issues/65"},"comments":{"href":"https://api.github.com/repos/code-mancers/dockup/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/code-mancers/dockup/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/code-mancers/dockup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/code-mancers/dockup/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/code-mancers/dockup/statuses/040dce9a932a00422d68d8187f970698e597bd12"}}}}
{"actor":{"display_login":"iffyuva"}}