{"action":"created","comment":{"url":"https://api.github.com/repos/ravenjohn/cuddle/pulls/comments/27193758","id":27193758,"diff_hunk":"@@ -155,6 +162,33 @@ var https = require('https'),\n             return this.send(this.data);\n         };\n \n+        this.pipe = function (stream) {\n+            logger.log('verbose', 'Piping file..');\n+            this._stream = stream;\n+            return this;\n+        };\n+\n+        this.on = function (event_type, next) {\n+\n+            if (this.callbacks[event_type]) {\n+                this.callbacks[event_type] = this.callbacks[event_type].push(next);\n+            }\n+\n+            this.callbacks[event_type] = [next];\n+\n+            return this;\n+        };\n+\n+        this.emit = function (event_type, err, response) {\n+            if (typeof (this.callbacks[event_type]) !== 'undefined') {","path":"index.js","position":43,"original_position":43,"commit_id":"8ed534ed600b7e2862844f7b947e5fa5b11f66dc","original_commit_id":"8ed534ed600b7e2862844f7b947e5fa5b11f66dc","user":{"login":"ravenjohn","id":3425521,"avatar_url":"https://avatars.githubusercontent.com/u/3425521?v=3","gravatar_id":"","url":"https://api.github.com/users/ravenjohn","html_url":"https://github.com/ravenjohn","followers_url":"https://api.github.com/users/ravenjohn/followers","following_url":"https://api.github.com/users/ravenjohn/following{/other_user}","gists_url":"https://api.github.com/users/ravenjohn/gists{/gist_id}","starred_url":"https://api.github.com/users/ravenjohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravenjohn/subscriptions","organizations_url":"https://api.github.com/users/ravenjohn/orgs","repos_url":"https://api.github.com/users/ravenjohn/repos","events_url":"https://api.github.com/users/ravenjohn/events{/privacy}","received_events_url":"https://api.github.com/users/ravenjohn/received_events","type":"User","site_admin":false},"body":"i think `if (this.callbacks[event_type]) {` is enough","created_at":"2015-03-26T07:58:49Z","updated_at":"2015-03-26T07:58:49Z","html_url":"https://github.com/ravenjohn/cuddle/pull/4#discussion_r27193758","pull_request_url":"https://api.github.com/repos/ravenjohn/cuddle/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/ravenjohn/cuddle/pulls/comments/27193758"},"html":{"href":"https://github.com/ravenjohn/cuddle/pull/4#discussion_r27193758"},"pull_request":{"href":"https://api.github.com/repos/ravenjohn/cuddle/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/ravenjohn/cuddle/pulls/4","id":31726424,"html_url":"https://github.com/ravenjohn/cuddle/pull/4","diff_url":"https://github.com/ravenjohn/cuddle/pull/4.diff","patch_url":"https://github.com/ravenjohn/cuddle/pull/4.patch","issue_url":"https://api.github.com/repos/ravenjohn/cuddle/issues/4","number":4,"state":"open","locked":false,"title":"Changed the Redirect URL","user":{"login":"lightshire","id":3846598,"avatar_url":"https://avatars.githubusercontent.com/u/3846598?v=3","gravatar_id":"","url":"https://api.github.com/users/lightshire","html_url":"https://github.com/lightshire","followers_url":"https://api.github.com/users/lightshire/followers","following_url":"https://api.github.com/users/lightshire/following{/other_user}","gists_url":"https://api.github.com/users/lightshire/gists{/gist_id}","starred_url":"https://api.github.com/users/lightshire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lightshire/subscriptions","organizations_url":"https://api.github.com/users/lightshire/orgs","repos_url":"https://api.github.com/users/lightshire/repos","events_url":"https://api.github.com/users/lightshire/events{/privacy}","received_events_url":"https://api.github.com/users/lightshire/received_events","type":"User","site_admin":false},"body":"Changed the redirect URL","created_at":"2015-03-23T12:12:54Z","updated_at":"2015-03-26T07:58:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"30e32307c1d1d0f72eb8e866fb6c93108c4d458c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ravenjohn/cuddle/pulls/4/commits","review_comments_url":"https://api.github.com/repos/ravenjohn/cuddle/pulls/4/comments","review_comment_url":"https://api.github.com/repos/ravenjohn/cuddle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ravenjohn/cuddle/issues/4/comments","statuses_url":"https://api.github.com/repos/ravenjohn/cuddle/statuses/8ed534ed600b7e2862844f7b947e5fa5b11f66dc","head":{"label":"lightshire:master","ref":"master","sha":"8ed534ed600b7e2862844f7b947e5fa5b11f66dc","user":{"login":"lightshire","id":3846598,"avatar_url":"https://avatars.githubusercontent.com/u/3846598?v=3","gravatar_id":"","url":"https://api.github.com/users/lightshire","html_url":"https://github.com/lightshire","followers_url":"https://api.github.com/users/lightshire/followers","following_url":"https://api.github.com/users/lightshire/following{/other_user}","gists_url":"https://api.github.com/users/lightshire/gists{/gist_id}","starred_url":"https://api.github.com/users/lightshire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lightshire/subscriptions","organizations_url":"https://api.github.com/users/lightshire/orgs","repos_url":"https://api.github.com/users/lightshire/repos","events_url":"https://api.github.com/users/lightshire/events{/privacy}","received_events_url":"https://api.github.com/users/lightshire/received_events","type":"User","site_admin":false},"repo":{"id":32726011,"name":"cuddle","full_name":"lightshire/cuddle","owner":{"login":"lightshire","id":3846598,"avatar_url":"https://avatars.githubusercontent.com/u/3846598?v=3","gravatar_id":"","url":"https://api.github.com/users/lightshire","html_url":"https://github.com/lightshire","followers_url":"https://api.github.com/users/lightshire/followers","following_url":"https://api.github.com/users/lightshire/following{/other_user}","gists_url":"https://api.github.com/users/lightshire/gists{/gist_id}","starred_url":"https://api.github.com/users/lightshire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lightshire/subscriptions","organizations_url":"https://api.github.com/users/lightshire/orgs","repos_url":"https://api.github.com/users/lightshire/repos","events_url":"https://api.github.com/users/lightshire/events{/privacy}","received_events_url":"https://api.github.com/users/lightshire/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lightshire/cuddle","description":"Cuddle","fork":true,"url":"https://api.github.com/repos/lightshire/cuddle","forks_url":"https://api.github.com/repos/lightshire/cuddle/forks","keys_url":"https://api.github.com/repos/lightshire/cuddle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lightshire/cuddle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lightshire/cuddle/teams","hooks_url":"https://api.github.com/repos/lightshire/cuddle/hooks","issue_events_url":"https://api.github.com/repos/lightshire/cuddle/issues/events{/number}","events_url":"https://api.github.com/repos/lightshire/cuddle/events","assignees_url":"https://api.github.com/repos/lightshire/cuddle/assignees{/user}","branches_url":"https://api.github.com/repos/lightshire/cuddle/branches{/branch}","tags_url":"https://api.github.com/repos/lightshire/cuddle/tags","blobs_url":"https://api.github.com/repos/lightshire/cuddle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lightshire/cuddle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lightshire/cuddle/git/refs{/sha}","trees_url":"https://api.github.com/repos/lightshire/cuddle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lightshire/cuddle/statuses/{sha}","languages_url":"https://api.github.com/repos/lightshire/cuddle/languages","stargazers_url":"https://api.github.com/repos/lightshire/cuddle/stargazers","contributors_url":"https://api.github.com/repos/lightshire/cuddle/contributors","subscribers_url":"https://api.github.com/repos/lightshire/cuddle/subscribers","subscription_url":"https://api.github.com/repos/lightshire/cuddle/subscription","commits_url":"https://api.github.com/repos/lightshire/cuddle/commits{/sha}","git_commits_url":"https://api.github.com/repos/lightshire/cuddle/git/commits{/sha}","comments_url":"https://api.github.com/repos/lightshire/cuddle/comments{/number}","issue_comment_url":"https://api.github.com/repos/lightshire/cuddle/issues/comments{/number}","contents_url":"https://api.github.com/repos/lightshire/cuddle/contents/{+path}","compare_url":"https://api.github.com/repos/lightshire/cuddle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lightshire/cuddle/merges","archive_url":"https://api.github.com/repos/lightshire/cuddle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lightshire/cuddle/downloads","issues_url":"https://api.github.com/repos/lightshire/cuddle/issues{/number}","pulls_url":"https://api.github.com/repos/lightshire/cuddle/pulls{/number}","milestones_url":"https://api.github.com/repos/lightshire/cuddle/milestones{/number}","notifications_url":"https://api.github.com/repos/lightshire/cuddle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lightshire/cuddle/labels{/name}","releases_url":"https://api.github.com/repos/lightshire/cuddle/releases{/id}","created_at":"2015-03-23T10:42:12Z","updated_at":"2015-03-26T07:42:38Z","pushed_at":"2015-03-26T07:42:37Z","git_url":"git://github.com/lightshire/cuddle.git","ssh_url":"git@github.com:lightshire/cuddle.git","clone_url":"https://github.com/lightshire/cuddle.git","svn_url":"https://github.com/lightshire/cuddle","homepage":null,"size":234,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"ravenjohn:master","ref":"master","sha":"d65aa62408c27761163abdab1782ff3bbbb3cabc","user":{"login":"ravenjohn","id":3425521,"avatar_url":"https://avatars.githubusercontent.com/u/3425521?v=3","gravatar_id":"","url":"https://api.github.com/users/ravenjohn","html_url":"https://github.com/ravenjohn","followers_url":"https://api.github.com/users/ravenjohn/followers","following_url":"https://api.github.com/users/ravenjohn/following{/other_user}","gists_url":"https://api.github.com/users/ravenjohn/gists{/gist_id}","starred_url":"https://api.github.com/users/ravenjohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravenjohn/subscriptions","organizations_url":"https://api.github.com/users/ravenjohn/orgs","repos_url":"https://api.github.com/users/ravenjohn/repos","events_url":"https://api.github.com/users/ravenjohn/events{/privacy}","received_events_url":"https://api.github.com/users/ravenjohn/received_events","type":"User","site_admin":false},"repo":{"id":24446554,"name":"cuddle","full_name":"ravenjohn/cuddle","owner":{"login":"ravenjohn","id":3425521,"avatar_url":"https://avatars.githubusercontent.com/u/3425521?v=3","gravatar_id":"","url":"https://api.github.com/users/ravenjohn","html_url":"https://github.com/ravenjohn","followers_url":"https://api.github.com/users/ravenjohn/followers","following_url":"https://api.github.com/users/ravenjohn/following{/other_user}","gists_url":"https://api.github.com/users/ravenjohn/gists{/gist_id}","starred_url":"https://api.github.com/users/ravenjohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravenjohn/subscriptions","organizations_url":"https://api.github.com/users/ravenjohn/orgs","repos_url":"https://api.github.com/users/ravenjohn/repos","events_url":"https://api.github.com/users/ravenjohn/events{/privacy}","received_events_url":"https://api.github.com/users/ravenjohn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ravenjohn/cuddle","description":"Cuddle","fork":false,"url":"https://api.github.com/repos/ravenjohn/cuddle","forks_url":"https://api.github.com/repos/ravenjohn/cuddle/forks","keys_url":"https://api.github.com/repos/ravenjohn/cuddle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ravenjohn/cuddle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ravenjohn/cuddle/teams","hooks_url":"https://api.github.com/repos/ravenjohn/cuddle/hooks","issue_events_url":"https://api.github.com/repos/ravenjohn/cuddle/issues/events{/number}","events_url":"https://api.github.com/repos/ravenjohn/cuddle/events","assignees_url":"https://api.github.com/repos/ravenjohn/cuddle/assignees{/user}","branches_url":"https://api.github.com/repos/ravenjohn/cuddle/branches{/branch}","tags_url":"https://api.github.com/repos/ravenjohn/cuddle/tags","blobs_url":"https://api.github.com/repos/ravenjohn/cuddle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ravenjohn/cuddle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ravenjohn/cuddle/git/refs{/sha}","trees_url":"https://api.github.com/repos/ravenjohn/cuddle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ravenjohn/cuddle/statuses/{sha}","languages_url":"https://api.github.com/repos/ravenjohn/cuddle/languages","stargazers_url":"https://api.github.com/repos/ravenjohn/cuddle/stargazers","contributors_url":"https://api.github.com/repos/ravenjohn/cuddle/contributors","subscribers_url":"https://api.github.com/repos/ravenjohn/cuddle/subscribers","subscription_url":"https://api.github.com/repos/ravenjohn/cuddle/subscription","commits_url":"https://api.github.com/repos/ravenjohn/cuddle/commits{/sha}","git_commits_url":"https://api.github.com/repos/ravenjohn/cuddle/git/commits{/sha}","comments_url":"https://api.github.com/repos/ravenjohn/cuddle/comments{/number}","issue_comment_url":"https://api.github.com/repos/ravenjohn/cuddle/issues/comments{/number}","contents_url":"https://api.github.com/repos/ravenjohn/cuddle/contents/{+path}","compare_url":"https://api.github.com/repos/ravenjohn/cuddle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ravenjohn/cuddle/merges","archive_url":"https://api.github.com/repos/ravenjohn/cuddle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ravenjohn/cuddle/downloads","issues_url":"https://api.github.com/repos/ravenjohn/cuddle/issues{/number}","pulls_url":"https://api.github.com/repos/ravenjohn/cuddle/pulls{/number}","milestones_url":"https://api.github.com/repos/ravenjohn/cuddle/milestones{/number}","notifications_url":"https://api.github.com/repos/ravenjohn/cuddle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ravenjohn/cuddle/labels{/name}","releases_url":"https://api.github.com/repos/ravenjohn/cuddle/releases{/id}","created_at":"2014-09-25T06:36:32Z","updated_at":"2015-03-17T08:47:34Z","pushed_at":"2015-03-26T07:42:38Z","git_url":"git://github.com/ravenjohn/cuddle.git","ssh_url":"git@github.com:ravenjohn/cuddle.git","clone_url":"https://github.com/ravenjohn/cuddle.git","svn_url":"https://github.com/ravenjohn/cuddle","homepage":null,"size":234,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ravenjohn/cuddle/pulls/4"},"html":{"href":"https://github.com/ravenjohn/cuddle/pull/4"},"issue":{"href":"https://api.github.com/repos/ravenjohn/cuddle/issues/4"},"comments":{"href":"https://api.github.com/repos/ravenjohn/cuddle/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/ravenjohn/cuddle/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/ravenjohn/cuddle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ravenjohn/cuddle/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/ravenjohn/cuddle/statuses/8ed534ed600b7e2862844f7b947e5fa5b11f66dc"}}}}