{"action":"created","comment":{"url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/pulls/comments/46494028","id":46494028,"diff_hunk":"@@ -0,0 +1,71 @@\n+log = new ObjectLogger('hubaaa.GitHubApiClient', 'debug')\n+\n+\n+class hubaaa.GitHubApiClient\n+\n+\n+  instance = null\n+\n+  @get: ->\n+    instance ?= new hubaaa.GitHubApiClient\n+    return instance\n+\n+\n+  constructor: ->\n+    try\n+      log.enter('constructor', arguments)\n+\n+      @endpoint = 'https://api.github.com'\n+\n+      @httpOptions = {\n+        headers:\n+          'User-Agent': 'Github api meteor client'\n+      }\n+\n+    finally\n+      log.return()\n+\n+\n+  _request: (method, path, callback)->\n+    try\n+      log.enter('_get', arguments)\n+\n+      expect(path).to.be.a('string').that.is.ok\n+      url = @endpoint + path\n+      HTTP.call method, url, @httpOptions, callback","path":"app/packages/packaged-app/src/lib/GitHubApiClient.coffee","position":35,"original_position":35,"commit_id":"bb490e469b08bc7454c1b15dfb0d4f0596c5b53c","original_commit_id":"bb490e469b08bc7454c1b15dfb0d4f0596c5b53c","user":{"login":"jmsegrev","id":4755465,"avatar_url":"https://avatars.githubusercontent.com/u/4755465?v=3","gravatar_id":"","url":"https://api.github.com/users/jmsegrev","html_url":"https://github.com/jmsegrev","followers_url":"https://api.github.com/users/jmsegrev/followers","following_url":"https://api.github.com/users/jmsegrev/following{/other_user}","gists_url":"https://api.github.com/users/jmsegrev/gists{/gist_id}","starred_url":"https://api.github.com/users/jmsegrev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmsegrev/subscriptions","organizations_url":"https://api.github.com/users/jmsegrev/orgs","repos_url":"https://api.github.com/users/jmsegrev/repos","events_url":"https://api.github.com/users/jmsegrev/events{/privacy}","received_events_url":"https://api.github.com/users/jmsegrev/received_events","type":"User","site_admin":false},"body":"Related my to top comment.","created_at":"2015-12-02T23:41:06Z","updated_at":"2015-12-02T23:41:06Z","html_url":"https://github.com/hubaaa/hubapp-github-vacation-responder/pull/4#discussion_r46494028","pull_request_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/pulls/comments/46494028"},"html":{"href":"https://github.com/hubaaa/hubapp-github-vacation-responder/pull/4#discussion_r46494028"},"pull_request":{"href":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/pulls/4","id":52336233,"html_url":"https://github.com/hubaaa/hubapp-github-vacation-responder/pull/4","diff_url":"https://github.com/hubaaa/hubapp-github-vacation-responder/pull/4.diff","patch_url":"https://github.com/hubaaa/hubapp-github-vacation-responder/pull/4.patch","issue_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/issues/4","number":4,"state":"open","locked":false,"title":"Added filter by repo","user":{"login":"jmsegrev","id":4755465,"avatar_url":"https://avatars.githubusercontent.com/u/4755465?v=3","gravatar_id":"","url":"https://api.github.com/users/jmsegrev","html_url":"https://github.com/jmsegrev","followers_url":"https://api.github.com/users/jmsegrev/followers","following_url":"https://api.github.com/users/jmsegrev/following{/other_user}","gists_url":"https://api.github.com/users/jmsegrev/gists{/gist_id}","starred_url":"https://api.github.com/users/jmsegrev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmsegrev/subscriptions","organizations_url":"https://api.github.com/users/jmsegrev/orgs","repos_url":"https://api.github.com/users/jmsegrev/repos","events_url":"https://api.github.com/users/jmsegrev/events{/privacy}","received_events_url":"https://api.github.com/users/jmsegrev/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-02T00:13:26Z","updated_at":"2015-12-02T23:41:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"652c9c391077b863c2ef26d70d26311853f9e154","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/pulls/4/commits","review_comments_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/pulls/4/comments","review_comment_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/issues/4/comments","statuses_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/statuses/bb490e469b08bc7454c1b15dfb0d4f0596c5b53c","head":{"label":"hubaaa:filter-by-repo","ref":"filter-by-repo","sha":"bb490e469b08bc7454c1b15dfb0d4f0596c5b53c","user":{"login":"hubaaa","id":13492494,"avatar_url":"https://avatars.githubusercontent.com/u/13492494?v=3","gravatar_id":"","url":"https://api.github.com/users/hubaaa","html_url":"https://github.com/hubaaa","followers_url":"https://api.github.com/users/hubaaa/followers","following_url":"https://api.github.com/users/hubaaa/following{/other_user}","gists_url":"https://api.github.com/users/hubaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/hubaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hubaaa/subscriptions","organizations_url":"https://api.github.com/users/hubaaa/orgs","repos_url":"https://api.github.com/users/hubaaa/repos","events_url":"https://api.github.com/users/hubaaa/events{/privacy}","received_events_url":"https://api.github.com/users/hubaaa/received_events","type":"Organization","site_admin":false},"repo":{"id":39870557,"name":"hubapp-github-vacation-responder","full_name":"hubaaa/hubapp-github-vacation-responder","owner":{"login":"hubaaa","id":13492494,"avatar_url":"https://avatars.githubusercontent.com/u/13492494?v=3","gravatar_id":"","url":"https://api.github.com/users/hubaaa","html_url":"https://github.com/hubaaa","followers_url":"https://api.github.com/users/hubaaa/followers","following_url":"https://api.github.com/users/hubaaa/following{/other_user}","gists_url":"https://api.github.com/users/hubaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/hubaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hubaaa/subscriptions","organizations_url":"https://api.github.com/users/hubaaa/orgs","repos_url":"https://api.github.com/users/hubaaa/repos","events_url":"https://api.github.com/users/hubaaa/events{/privacy}","received_events_url":"https://api.github.com/users/hubaaa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hubaaa/hubapp-github-vacation-responder","description":"Demo at:","fork":false,"url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder","forks_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/forks","keys_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/teams","hooks_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/hooks","issue_events_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/issues/events{/number}","events_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/events","assignees_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/assignees{/user}","branches_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/branches{/branch}","tags_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/tags","blobs_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/git/refs{/sha}","trees_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/statuses/{sha}","languages_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/languages","stargazers_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/stargazers","contributors_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/contributors","subscribers_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/subscribers","subscription_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/subscription","commits_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/commits{/sha}","git_commits_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/git/commits{/sha}","comments_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/comments{/number}","issue_comment_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/issues/comments{/number}","contents_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/contents/{+path}","compare_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/merges","archive_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/downloads","issues_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/issues{/number}","pulls_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/pulls{/number}","milestones_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/milestones{/number}","notifications_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/labels{/name}","releases_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/releases{/id}","created_at":"2015-07-29T03:13:46Z","updated_at":"2015-10-08T13:53:12Z","pushed_at":"2015-12-02T00:13:27Z","git_url":"git://github.com/hubaaa/hubapp-github-vacation-responder.git","ssh_url":"git@github.com:hubaaa/hubapp-github-vacation-responder.git","clone_url":"https://github.com/hubaaa/hubapp-github-vacation-responder.git","svn_url":"https://github.com/hubaaa/hubapp-github-vacation-responder","homepage":"https://hubaaa-github-vacation-responder.meteor.com/","size":3996,"stargazers_count":4,"watchers_count":4,"language":"CoffeeScript","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":4,"default_branch":"master"}},"base":{"label":"hubaaa:master","ref":"master","sha":"95fa0123dd3453bdee81b3d754495667bf45fafc","user":{"login":"hubaaa","id":13492494,"avatar_url":"https://avatars.githubusercontent.com/u/13492494?v=3","gravatar_id":"","url":"https://api.github.com/users/hubaaa","html_url":"https://github.com/hubaaa","followers_url":"https://api.github.com/users/hubaaa/followers","following_url":"https://api.github.com/users/hubaaa/following{/other_user}","gists_url":"https://api.github.com/users/hubaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/hubaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hubaaa/subscriptions","organizations_url":"https://api.github.com/users/hubaaa/orgs","repos_url":"https://api.github.com/users/hubaaa/repos","events_url":"https://api.github.com/users/hubaaa/events{/privacy}","received_events_url":"https://api.github.com/users/hubaaa/received_events","type":"Organization","site_admin":false},"repo":{"id":39870557,"name":"hubapp-github-vacation-responder","full_name":"hubaaa/hubapp-github-vacation-responder","owner":{"login":"hubaaa","id":13492494,"avatar_url":"https://avatars.githubusercontent.com/u/13492494?v=3","gravatar_id":"","url":"https://api.github.com/users/hubaaa","html_url":"https://github.com/hubaaa","followers_url":"https://api.github.com/users/hubaaa/followers","following_url":"https://api.github.com/users/hubaaa/following{/other_user}","gists_url":"https://api.github.com/users/hubaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/hubaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hubaaa/subscriptions","organizations_url":"https://api.github.com/users/hubaaa/orgs","repos_url":"https://api.github.com/users/hubaaa/repos","events_url":"https://api.github.com/users/hubaaa/events{/privacy}","received_events_url":"https://api.github.com/users/hubaaa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hubaaa/hubapp-github-vacation-responder","description":"Demo at:","fork":false,"url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder","forks_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/forks","keys_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/teams","hooks_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/hooks","issue_events_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/issues/events{/number}","events_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/events","assignees_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/assignees{/user}","branches_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/branches{/branch}","tags_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/tags","blobs_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/git/refs{/sha}","trees_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/statuses/{sha}","languages_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/languages","stargazers_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/stargazers","contributors_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/contributors","subscribers_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/subscribers","subscription_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/subscription","commits_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/commits{/sha}","git_commits_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/git/commits{/sha}","comments_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/comments{/number}","issue_comment_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/issues/comments{/number}","contents_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/contents/{+path}","compare_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/merges","archive_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/downloads","issues_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/issues{/number}","pulls_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/pulls{/number}","milestones_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/milestones{/number}","notifications_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/labels{/name}","releases_url":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/releases{/id}","created_at":"2015-07-29T03:13:46Z","updated_at":"2015-10-08T13:53:12Z","pushed_at":"2015-12-02T00:13:27Z","git_url":"git://github.com/hubaaa/hubapp-github-vacation-responder.git","ssh_url":"git@github.com:hubaaa/hubapp-github-vacation-responder.git","clone_url":"https://github.com/hubaaa/hubapp-github-vacation-responder.git","svn_url":"https://github.com/hubaaa/hubapp-github-vacation-responder","homepage":"https://hubaaa-github-vacation-responder.meteor.com/","size":3996,"stargazers_count":4,"watchers_count":4,"language":"CoffeeScript","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":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/pulls/4"},"html":{"href":"https://github.com/hubaaa/hubapp-github-vacation-responder/pull/4"},"issue":{"href":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/issues/4"},"comments":{"href":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/hubaaa/hubapp-github-vacation-responder/statuses/bb490e469b08bc7454c1b15dfb0d4f0596c5b53c"}}}}