{"action":"created","comment":{"url":"https://api.github.com/repos/dtao/deft/pulls/comments/24472726","id":24472726,"diff_hunk":"@@ -55,8 +75,8 @@ function getDestinationPath(fileName) {\n   return path.join(process.cwd(), folder, fileName);\n }\n \n-function pathExists(path) {\n-  return (fs.existsSync || path.existsSync)(path);\n+function pathExists(p) {","path":"bin/deft","position":33,"original_position":33,"commit_id":"035ac81f029e32cf812d89570930d2ff2b3aff53","original_commit_id":"035ac81f029e32cf812d89570930d2ff2b3aff53","user":{"login":"dtao","id":409328,"avatar_url":"https://avatars.githubusercontent.com/u/409328?v=3","gravatar_id":"","url":"https://api.github.com/users/dtao","html_url":"https://github.com/dtao","followers_url":"https://api.github.com/users/dtao/followers","following_url":"https://api.github.com/users/dtao/following{/other_user}","gists_url":"https://api.github.com/users/dtao/gists{/gist_id}","starred_url":"https://api.github.com/users/dtao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtao/subscriptions","organizations_url":"https://api.github.com/users/dtao/orgs","repos_url":"https://api.github.com/users/dtao/repos","events_url":"https://api.github.com/users/dtao/events{/privacy}","received_events_url":"https://api.github.com/users/dtao/received_events","type":"User","site_admin":false},"body":"Ugh! Can't believe this bug is still there! I actually think I fixed this locally on an old laptop and then never pushed... not that I have proof, mind you...","created_at":"2015-02-11T03:38:28Z","updated_at":"2015-02-11T03:38:28Z","html_url":"https://github.com/dtao/deft/pull/3#discussion_r24472726","pull_request_url":"https://api.github.com/repos/dtao/deft/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/dtao/deft/pulls/comments/24472726"},"html":{"href":"https://github.com/dtao/deft/pull/3#discussion_r24472726"},"pull_request":{"href":"https://api.github.com/repos/dtao/deft/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/dtao/deft/pulls/3","id":28823426,"html_url":"https://github.com/dtao/deft/pull/3","diff_url":"https://github.com/dtao/deft/pull/3.diff","patch_url":"https://github.com/dtao/deft/pull/3.patch","issue_url":"https://api.github.com/repos/dtao/deft/issues/3","number":3,"state":"open","locked":false,"title":"Support for github folders","user":{"login":"Marsup","id":796194,"avatar_url":"https://avatars.githubusercontent.com/u/796194?v=3","gravatar_id":"","url":"https://api.github.com/users/Marsup","html_url":"https://github.com/Marsup","followers_url":"https://api.github.com/users/Marsup/followers","following_url":"https://api.github.com/users/Marsup/following{/other_user}","gists_url":"https://api.github.com/users/Marsup/gists{/gist_id}","starred_url":"https://api.github.com/users/Marsup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marsup/subscriptions","organizations_url":"https://api.github.com/users/Marsup/orgs","repos_url":"https://api.github.com/users/Marsup/repos","events_url":"https://api.github.com/users/Marsup/events{/privacy}","received_events_url":"https://api.github.com/users/Marsup/received_events","type":"User","site_admin":false},"body":"Hey, it's me again :)\r\n\r\nI've needed to grab complete folders from github dependencies, so here's a quick patch for that.\r\nSometimes the GH API rejects for its rate limit, I've added a GITHUB_AUTH_TOKEN as en environment variable for that.","created_at":"2015-02-06T16:53:21Z","updated_at":"2015-02-11T03:38:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f41c6b16b40001d23c855ceb107fd8f58ab588ef","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dtao/deft/pulls/3/commits","review_comments_url":"https://api.github.com/repos/dtao/deft/pulls/3/comments","review_comment_url":"https://api.github.com/repos/dtao/deft/pulls/comments/{number}","comments_url":"https://api.github.com/repos/dtao/deft/issues/3/comments","statuses_url":"https://api.github.com/repos/dtao/deft/statuses/035ac81f029e32cf812d89570930d2ff2b3aff53","head":{"label":"Marsup:gh-folders","ref":"gh-folders","sha":"035ac81f029e32cf812d89570930d2ff2b3aff53","user":{"login":"Marsup","id":796194,"avatar_url":"https://avatars.githubusercontent.com/u/796194?v=3","gravatar_id":"","url":"https://api.github.com/users/Marsup","html_url":"https://github.com/Marsup","followers_url":"https://api.github.com/users/Marsup/followers","following_url":"https://api.github.com/users/Marsup/following{/other_user}","gists_url":"https://api.github.com/users/Marsup/gists{/gist_id}","starred_url":"https://api.github.com/users/Marsup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marsup/subscriptions","organizations_url":"https://api.github.com/users/Marsup/orgs","repos_url":"https://api.github.com/users/Marsup/repos","events_url":"https://api.github.com/users/Marsup/events{/privacy}","received_events_url":"https://api.github.com/users/Marsup/received_events","type":"User","site_admin":false},"repo":{"id":22282734,"name":"deft","full_name":"Marsup/deft","owner":{"login":"Marsup","id":796194,"avatar_url":"https://avatars.githubusercontent.com/u/796194?v=3","gravatar_id":"","url":"https://api.github.com/users/Marsup","html_url":"https://github.com/Marsup","followers_url":"https://api.github.com/users/Marsup/followers","following_url":"https://api.github.com/users/Marsup/following{/other_user}","gists_url":"https://api.github.com/users/Marsup/gists{/gist_id}","starred_url":"https://api.github.com/users/Marsup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marsup/subscriptions","organizations_url":"https://api.github.com/users/Marsup/orgs","repos_url":"https://api.github.com/users/Marsup/repos","events_url":"https://api.github.com/users/Marsup/events{/privacy}","received_events_url":"https://api.github.com/users/Marsup/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Marsup/deft","description":"JS dependency declaration","fork":true,"url":"https://api.github.com/repos/Marsup/deft","forks_url":"https://api.github.com/repos/Marsup/deft/forks","keys_url":"https://api.github.com/repos/Marsup/deft/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Marsup/deft/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Marsup/deft/teams","hooks_url":"https://api.github.com/repos/Marsup/deft/hooks","issue_events_url":"https://api.github.com/repos/Marsup/deft/issues/events{/number}","events_url":"https://api.github.com/repos/Marsup/deft/events","assignees_url":"https://api.github.com/repos/Marsup/deft/assignees{/user}","branches_url":"https://api.github.com/repos/Marsup/deft/branches{/branch}","tags_url":"https://api.github.com/repos/Marsup/deft/tags","blobs_url":"https://api.github.com/repos/Marsup/deft/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Marsup/deft/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Marsup/deft/git/refs{/sha}","trees_url":"https://api.github.com/repos/Marsup/deft/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Marsup/deft/statuses/{sha}","languages_url":"https://api.github.com/repos/Marsup/deft/languages","stargazers_url":"https://api.github.com/repos/Marsup/deft/stargazers","contributors_url":"https://api.github.com/repos/Marsup/deft/contributors","subscribers_url":"https://api.github.com/repos/Marsup/deft/subscribers","subscription_url":"https://api.github.com/repos/Marsup/deft/subscription","commits_url":"https://api.github.com/repos/Marsup/deft/commits{/sha}","git_commits_url":"https://api.github.com/repos/Marsup/deft/git/commits{/sha}","comments_url":"https://api.github.com/repos/Marsup/deft/comments{/number}","issue_comment_url":"https://api.github.com/repos/Marsup/deft/issues/comments/{number}","contents_url":"https://api.github.com/repos/Marsup/deft/contents/{+path}","compare_url":"https://api.github.com/repos/Marsup/deft/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Marsup/deft/merges","archive_url":"https://api.github.com/repos/Marsup/deft/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Marsup/deft/downloads","issues_url":"https://api.github.com/repos/Marsup/deft/issues{/number}","pulls_url":"https://api.github.com/repos/Marsup/deft/pulls{/number}","milestones_url":"https://api.github.com/repos/Marsup/deft/milestones{/number}","notifications_url":"https://api.github.com/repos/Marsup/deft/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Marsup/deft/labels{/name}","releases_url":"https://api.github.com/repos/Marsup/deft/releases{/id}","created_at":"2014-07-26T09:26:12Z","updated_at":"2015-02-06T16:50:46Z","pushed_at":"2015-02-06T16:50:46Z","git_url":"git://github.com/Marsup/deft.git","ssh_url":"git@github.com:Marsup/deft.git","clone_url":"https://github.com/Marsup/deft.git","svn_url":"https://github.com/Marsup/deft","homepage":"","size":165,"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":"dtao:master","ref":"master","sha":"1c5d30d4d5d685037f7bb1136156c4d52c2bede0","user":{"login":"dtao","id":409328,"avatar_url":"https://avatars.githubusercontent.com/u/409328?v=3","gravatar_id":"","url":"https://api.github.com/users/dtao","html_url":"https://github.com/dtao","followers_url":"https://api.github.com/users/dtao/followers","following_url":"https://api.github.com/users/dtao/following{/other_user}","gists_url":"https://api.github.com/users/dtao/gists{/gist_id}","starred_url":"https://api.github.com/users/dtao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtao/subscriptions","organizations_url":"https://api.github.com/users/dtao/orgs","repos_url":"https://api.github.com/users/dtao/repos","events_url":"https://api.github.com/users/dtao/events{/privacy}","received_events_url":"https://api.github.com/users/dtao/received_events","type":"User","site_admin":false},"repo":{"id":14354495,"name":"deft","full_name":"dtao/deft","owner":{"login":"dtao","id":409328,"avatar_url":"https://avatars.githubusercontent.com/u/409328?v=3","gravatar_id":"","url":"https://api.github.com/users/dtao","html_url":"https://github.com/dtao","followers_url":"https://api.github.com/users/dtao/followers","following_url":"https://api.github.com/users/dtao/following{/other_user}","gists_url":"https://api.github.com/users/dtao/gists{/gist_id}","starred_url":"https://api.github.com/users/dtao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtao/subscriptions","organizations_url":"https://api.github.com/users/dtao/orgs","repos_url":"https://api.github.com/users/dtao/repos","events_url":"https://api.github.com/users/dtao/events{/privacy}","received_events_url":"https://api.github.com/users/dtao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dtao/deft","description":"JS dependency declaration","fork":false,"url":"https://api.github.com/repos/dtao/deft","forks_url":"https://api.github.com/repos/dtao/deft/forks","keys_url":"https://api.github.com/repos/dtao/deft/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dtao/deft/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dtao/deft/teams","hooks_url":"https://api.github.com/repos/dtao/deft/hooks","issue_events_url":"https://api.github.com/repos/dtao/deft/issues/events{/number}","events_url":"https://api.github.com/repos/dtao/deft/events","assignees_url":"https://api.github.com/repos/dtao/deft/assignees{/user}","branches_url":"https://api.github.com/repos/dtao/deft/branches{/branch}","tags_url":"https://api.github.com/repos/dtao/deft/tags","blobs_url":"https://api.github.com/repos/dtao/deft/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dtao/deft/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dtao/deft/git/refs{/sha}","trees_url":"https://api.github.com/repos/dtao/deft/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dtao/deft/statuses/{sha}","languages_url":"https://api.github.com/repos/dtao/deft/languages","stargazers_url":"https://api.github.com/repos/dtao/deft/stargazers","contributors_url":"https://api.github.com/repos/dtao/deft/contributors","subscribers_url":"https://api.github.com/repos/dtao/deft/subscribers","subscription_url":"https://api.github.com/repos/dtao/deft/subscription","commits_url":"https://api.github.com/repos/dtao/deft/commits{/sha}","git_commits_url":"https://api.github.com/repos/dtao/deft/git/commits{/sha}","comments_url":"https://api.github.com/repos/dtao/deft/comments{/number}","issue_comment_url":"https://api.github.com/repos/dtao/deft/issues/comments/{number}","contents_url":"https://api.github.com/repos/dtao/deft/contents/{+path}","compare_url":"https://api.github.com/repos/dtao/deft/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dtao/deft/merges","archive_url":"https://api.github.com/repos/dtao/deft/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dtao/deft/downloads","issues_url":"https://api.github.com/repos/dtao/deft/issues{/number}","pulls_url":"https://api.github.com/repos/dtao/deft/pulls{/number}","milestones_url":"https://api.github.com/repos/dtao/deft/milestones{/number}","notifications_url":"https://api.github.com/repos/dtao/deft/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dtao/deft/labels{/name}","releases_url":"https://api.github.com/repos/dtao/deft/releases{/id}","created_at":"2013-11-13T05:06:47Z","updated_at":"2014-07-25T07:23:19Z","pushed_at":"2014-08-10T17:15:39Z","git_url":"git://github.com/dtao/deft.git","ssh_url":"git@github.com:dtao/deft.git","clone_url":"https://github.com/dtao/deft.git","svn_url":"https://github.com/dtao/deft","homepage":"","size":303,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","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":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dtao/deft/pulls/3"},"html":{"href":"https://github.com/dtao/deft/pull/3"},"issue":{"href":"https://api.github.com/repos/dtao/deft/issues/3"},"comments":{"href":"https://api.github.com/repos/dtao/deft/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/dtao/deft/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/dtao/deft/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/dtao/deft/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/dtao/deft/statuses/035ac81f029e32cf812d89570930d2ff2b3aff53"}}}}