{"action":"created","comment":{"url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/pulls/comments/61663253","id":61663253,"diff_hunk":"@@ -47,21 +47,36 @@ public function onQueue(TasksHandler $queue)\n         $queue->listenTo($queue->config->get('rocketeer-flowdock::stage_before'), function ($task) {\n             foreach ($task->config->get('rocketeer-flowdock::source_tokens') as $sourceToken) {\n                 $message = new RocketeerFlowdockMessage($sourceToken, $this->externalThreadID);\n-                $message->notify($task, $task->config->get('rocketeer-flowdock::message_before'));\n+                $message->notify(\n+                    $task->rocketeer,\n+                    $task->config,\n+                    $task->connections,\n+                    $task->config->get('rocketeer-flowdock::message_before')\n+                );\n             }\n         });\n \n         $queue->listenTo($queue->config->get('rocketeer-flowdock::stage_after'), function ($task) {\n             foreach ($task->config->get('rocketeer-flowdock::source_tokens') as $sourceToken) {\n                 $message = new RocketeerFlowdockMessage($sourceToken, $this->externalThreadID);\n-                $message->notify($task, $task->config->get('rocketeer-flowdock::message_after'));\n+                $message->notify(\n+                    $task->rocketeer,\n+                    $task->config,\n+                    $task->connections,\n+                    $task->config->get('rocketeer-flowdock::message_after')\n+                );","path":"src/Flowdock/RocketeerFlowdock.php","position":76,"original_position":23,"commit_id":"4c59a4b7749bc1ad6537e413f99fb2d05be261b4","original_commit_id":"4c59a4b7749bc1ad6537e413f99fb2d05be261b4","user":{"login":"matthew-wheeler","id":4596015,"avatar_url":"https://avatars.githubusercontent.com/u/4596015?v=3","gravatar_id":"","url":"https://api.github.com/users/matthew-wheeler","html_url":"https://github.com/matthew-wheeler","followers_url":"https://api.github.com/users/matthew-wheeler/followers","following_url":"https://api.github.com/users/matthew-wheeler/following{/other_user}","gists_url":"https://api.github.com/users/matthew-wheeler/gists{/gist_id}","starred_url":"https://api.github.com/users/matthew-wheeler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthew-wheeler/subscriptions","organizations_url":"https://api.github.com/users/matthew-wheeler/orgs","repos_url":"https://api.github.com/users/matthew-wheeler/repos","events_url":"https://api.github.com/users/matthew-wheeler/events{/privacy}","received_events_url":"https://api.github.com/users/matthew-wheeler/received_events","type":"User","site_admin":false},"body":":+1:","created_at":"2016-04-30T02:14:58Z","updated_at":"2016-04-30T02:14:58Z","html_url":"https://github.com/peak-adventure-travel/rocketeer-flowdock/pull/1#discussion_r61663253","pull_request_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/pulls/comments/61663253"},"html":{"href":"https://github.com/peak-adventure-travel/rocketeer-flowdock/pull/1#discussion_r61663253"},"pull_request":{"href":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/pulls/1","id":68175250,"html_url":"https://github.com/peak-adventure-travel/rocketeer-flowdock/pull/1","diff_url":"https://github.com/peak-adventure-travel/rocketeer-flowdock/pull/1.diff","patch_url":"https://github.com/peak-adventure-travel/rocketeer-flowdock/pull/1.patch","issue_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/issues/1","number":1,"state":"open","locked":false,"title":"Implement rocketeer plugin for flowdock","user":{"login":"liamamos-intrepid","id":18390187,"avatar_url":"https://avatars.githubusercontent.com/u/18390187?v=3","gravatar_id":"","url":"https://api.github.com/users/liamamos-intrepid","html_url":"https://github.com/liamamos-intrepid","followers_url":"https://api.github.com/users/liamamos-intrepid/followers","following_url":"https://api.github.com/users/liamamos-intrepid/following{/other_user}","gists_url":"https://api.github.com/users/liamamos-intrepid/gists{/gist_id}","starred_url":"https://api.github.com/users/liamamos-intrepid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liamamos-intrepid/subscriptions","organizations_url":"https://api.github.com/users/liamamos-intrepid/orgs","repos_url":"https://api.github.com/users/liamamos-intrepid/repos","events_url":"https://api.github.com/users/liamamos-intrepid/events{/privacy}","received_events_url":"https://api.github.com/users/liamamos-intrepid/received_events","type":"User","site_admin":false},"body":"### What does this pull request fix/change?\r\nThis PR will implement the functionality to post events to Flowdock as directed by the [Flowdock Messaging API](https://www.flowdock.com/api/messages) to announce whenever a user runs the command :\r\n\r\n```bash\r\n$ vendor/bin/rocketeer deploy --on='<env>' --branch='<branch>'\r\n```\r\n\r\n### What does it do\r\nIt will send a HTTP POST request to the configured `source_tokens` as generated by Flowdock, this will generate an event (seen in the right hand side of Flowdock) for, before deployment* to announce that someone has started a deployment, after deployment* to announce the completion and when deployment has been halted due to an issue.\r\n\r\n##### Note:\r\nThe hook tasks can be modified to be any hook that is available in Rocketeer like setup, deploy, cleanup, and custom hooks like update if defined in their environments hooks.php","created_at":"2016-04-28T07:26:50Z","updated_at":"2016-04-30T02:14:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1f2738d024cce1ab182bd6fd03de4de664cdb020","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/pulls/1/commits","review_comments_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/pulls/1/comments","review_comment_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/pulls/comments{/number}","comments_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/issues/1/comments","statuses_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/statuses/4c59a4b7749bc1ad6537e413f99fb2d05be261b4","head":{"label":"peak-adventure-travel:feature/rocketeer-flowdock-plugin","ref":"feature/rocketeer-flowdock-plugin","sha":"4c59a4b7749bc1ad6537e413f99fb2d05be261b4","user":{"login":"peak-adventure-travel","id":4596027,"avatar_url":"https://avatars.githubusercontent.com/u/4596027?v=3","gravatar_id":"","url":"https://api.github.com/users/peak-adventure-travel","html_url":"https://github.com/peak-adventure-travel","followers_url":"https://api.github.com/users/peak-adventure-travel/followers","following_url":"https://api.github.com/users/peak-adventure-travel/following{/other_user}","gists_url":"https://api.github.com/users/peak-adventure-travel/gists{/gist_id}","starred_url":"https://api.github.com/users/peak-adventure-travel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peak-adventure-travel/subscriptions","organizations_url":"https://api.github.com/users/peak-adventure-travel/orgs","repos_url":"https://api.github.com/users/peak-adventure-travel/repos","events_url":"https://api.github.com/users/peak-adventure-travel/events{/privacy}","received_events_url":"https://api.github.com/users/peak-adventure-travel/received_events","type":"Organization","site_admin":false},"repo":{"id":57277254,"name":"rocketeer-flowdock","full_name":"peak-adventure-travel/rocketeer-flowdock","owner":{"login":"peak-adventure-travel","id":4596027,"avatar_url":"https://avatars.githubusercontent.com/u/4596027?v=3","gravatar_id":"","url":"https://api.github.com/users/peak-adventure-travel","html_url":"https://github.com/peak-adventure-travel","followers_url":"https://api.github.com/users/peak-adventure-travel/followers","following_url":"https://api.github.com/users/peak-adventure-travel/following{/other_user}","gists_url":"https://api.github.com/users/peak-adventure-travel/gists{/gist_id}","starred_url":"https://api.github.com/users/peak-adventure-travel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peak-adventure-travel/subscriptions","organizations_url":"https://api.github.com/users/peak-adventure-travel/orgs","repos_url":"https://api.github.com/users/peak-adventure-travel/repos","events_url":"https://api.github.com/users/peak-adventure-travel/events{/privacy}","received_events_url":"https://api.github.com/users/peak-adventure-travel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/peak-adventure-travel/rocketeer-flowdock","description":"Rocketeer plugin to send deployment messages to Flowdock","fork":false,"url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock","forks_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/forks","keys_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/teams","hooks_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/hooks","issue_events_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/issues/events{/number}","events_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/events","assignees_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/assignees{/user}","branches_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/branches{/branch}","tags_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/tags","blobs_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/git/refs{/sha}","trees_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/statuses/{sha}","languages_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/languages","stargazers_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/stargazers","contributors_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/contributors","subscribers_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/subscribers","subscription_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/subscription","commits_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/commits{/sha}","git_commits_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/git/commits{/sha}","comments_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/comments{/number}","issue_comment_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/issues/comments{/number}","contents_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/contents/{+path}","compare_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/merges","archive_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/downloads","issues_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/issues{/number}","pulls_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/pulls{/number}","milestones_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/milestones{/number}","notifications_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/labels{/name}","releases_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/releases{/id}","deployments_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/deployments","created_at":"2016-04-28T06:39:16Z","updated_at":"2016-04-28T06:40:35Z","pushed_at":"2016-04-29T04:45:32Z","git_url":"git://github.com/peak-adventure-travel/rocketeer-flowdock.git","ssh_url":"git@github.com:peak-adventure-travel/rocketeer-flowdock.git","clone_url":"https://github.com/peak-adventure-travel/rocketeer-flowdock.git","svn_url":"https://github.com/peak-adventure-travel/rocketeer-flowdock","homepage":null,"size":44,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"peak-adventure-travel:develop","ref":"develop","sha":"81802d83f06b9721a4b1e37759e436aa9441fe7b","user":{"login":"peak-adventure-travel","id":4596027,"avatar_url":"https://avatars.githubusercontent.com/u/4596027?v=3","gravatar_id":"","url":"https://api.github.com/users/peak-adventure-travel","html_url":"https://github.com/peak-adventure-travel","followers_url":"https://api.github.com/users/peak-adventure-travel/followers","following_url":"https://api.github.com/users/peak-adventure-travel/following{/other_user}","gists_url":"https://api.github.com/users/peak-adventure-travel/gists{/gist_id}","starred_url":"https://api.github.com/users/peak-adventure-travel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peak-adventure-travel/subscriptions","organizations_url":"https://api.github.com/users/peak-adventure-travel/orgs","repos_url":"https://api.github.com/users/peak-adventure-travel/repos","events_url":"https://api.github.com/users/peak-adventure-travel/events{/privacy}","received_events_url":"https://api.github.com/users/peak-adventure-travel/received_events","type":"Organization","site_admin":false},"repo":{"id":57277254,"name":"rocketeer-flowdock","full_name":"peak-adventure-travel/rocketeer-flowdock","owner":{"login":"peak-adventure-travel","id":4596027,"avatar_url":"https://avatars.githubusercontent.com/u/4596027?v=3","gravatar_id":"","url":"https://api.github.com/users/peak-adventure-travel","html_url":"https://github.com/peak-adventure-travel","followers_url":"https://api.github.com/users/peak-adventure-travel/followers","following_url":"https://api.github.com/users/peak-adventure-travel/following{/other_user}","gists_url":"https://api.github.com/users/peak-adventure-travel/gists{/gist_id}","starred_url":"https://api.github.com/users/peak-adventure-travel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peak-adventure-travel/subscriptions","organizations_url":"https://api.github.com/users/peak-adventure-travel/orgs","repos_url":"https://api.github.com/users/peak-adventure-travel/repos","events_url":"https://api.github.com/users/peak-adventure-travel/events{/privacy}","received_events_url":"https://api.github.com/users/peak-adventure-travel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/peak-adventure-travel/rocketeer-flowdock","description":"Rocketeer plugin to send deployment messages to Flowdock","fork":false,"url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock","forks_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/forks","keys_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/teams","hooks_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/hooks","issue_events_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/issues/events{/number}","events_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/events","assignees_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/assignees{/user}","branches_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/branches{/branch}","tags_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/tags","blobs_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/git/refs{/sha}","trees_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/statuses/{sha}","languages_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/languages","stargazers_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/stargazers","contributors_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/contributors","subscribers_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/subscribers","subscription_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/subscription","commits_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/commits{/sha}","git_commits_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/git/commits{/sha}","comments_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/comments{/number}","issue_comment_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/issues/comments{/number}","contents_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/contents/{+path}","compare_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/merges","archive_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/downloads","issues_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/issues{/number}","pulls_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/pulls{/number}","milestones_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/milestones{/number}","notifications_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/labels{/name}","releases_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/releases{/id}","deployments_url":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/deployments","created_at":"2016-04-28T06:39:16Z","updated_at":"2016-04-28T06:40:35Z","pushed_at":"2016-04-29T04:45:32Z","git_url":"git://github.com/peak-adventure-travel/rocketeer-flowdock.git","ssh_url":"git@github.com:peak-adventure-travel/rocketeer-flowdock.git","clone_url":"https://github.com/peak-adventure-travel/rocketeer-flowdock.git","svn_url":"https://github.com/peak-adventure-travel/rocketeer-flowdock","homepage":null,"size":44,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/pulls/1"},"html":{"href":"https://github.com/peak-adventure-travel/rocketeer-flowdock/pull/1"},"issue":{"href":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/issues/1"},"comments":{"href":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/peak-adventure-travel/rocketeer-flowdock/statuses/4c59a4b7749bc1ad6537e413f99fb2d05be261b4"}}}}