{"action":"created","comment":{"url":"https://api.github.com/repos/sindresorhus/vinyl-paths/pulls/comments/38354857","id":38354857,"diff_hunk":"@@ -6,7 +6,7 @@ module.exports = function (userCb) {\n \t\tthis.paths.push(file.path);\n \n \t\tif (userCb) {\n-\t\t\tuserCb(file.path, function () {\n+\t\t\tuserCb(file.path).then(function () {","path":"index.js","position":5,"original_position":5,"commit_id":"ca76c6b8eb9fb8dcc7145a9fe9a1725b84558c86","original_commit_id":"aa09a98348a3e6b48b5f927403c32e7edd202e81","user":{"login":"wbinnssmith","id":755844,"avatar_url":"https://avatars.githubusercontent.com/u/755844?v=3","gravatar_id":"","url":"https://api.github.com/users/wbinnssmith","html_url":"https://github.com/wbinnssmith","followers_url":"https://api.github.com/users/wbinnssmith/followers","following_url":"https://api.github.com/users/wbinnssmith/following{/other_user}","gists_url":"https://api.github.com/users/wbinnssmith/gists{/gist_id}","starred_url":"https://api.github.com/users/wbinnssmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wbinnssmith/subscriptions","organizations_url":"https://api.github.com/users/wbinnssmith/orgs","repos_url":"https://api.github.com/users/wbinnssmith/repos","events_url":"https://api.github.com/users/wbinnssmith/events{/privacy}","received_events_url":"https://api.github.com/users/wbinnssmith/received_events","type":"User","site_admin":false},"body":"yep!","created_at":"2015-08-31T20:21:47Z","updated_at":"2015-08-31T20:21:47Z","html_url":"https://github.com/sindresorhus/vinyl-paths/pull/3#discussion_r38354857","pull_request_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/vinyl-paths/pulls/comments/38354857"},"html":{"href":"https://github.com/sindresorhus/vinyl-paths/pull/3#discussion_r38354857"},"pull_request":{"href":"https://api.github.com/repos/sindresorhus/vinyl-paths/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/sindresorhus/vinyl-paths/pulls/3","id":43729476,"html_url":"https://github.com/sindresorhus/vinyl-paths/pull/3","diff_url":"https://github.com/sindresorhus/vinyl-paths/pull/3.diff","patch_url":"https://github.com/sindresorhus/vinyl-paths/pull/3.patch","issue_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/issues/3","number":3,"state":"open","locked":false,"title":"Add Promise API","user":{"login":"wbinnssmith","id":755844,"avatar_url":"https://avatars.githubusercontent.com/u/755844?v=3","gravatar_id":"","url":"https://api.github.com/users/wbinnssmith","html_url":"https://github.com/wbinnssmith","followers_url":"https://api.github.com/users/wbinnssmith/followers","following_url":"https://api.github.com/users/wbinnssmith/following{/other_user}","gists_url":"https://api.github.com/users/wbinnssmith/gists{/gist_id}","starred_url":"https://api.github.com/users/wbinnssmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wbinnssmith/subscriptions","organizations_url":"https://api.github.com/users/wbinnssmith/orgs","repos_url":"https://api.github.com/users/wbinnssmith/repos","events_url":"https://api.github.com/users/wbinnssmith/events{/privacy}","received_events_url":"https://api.github.com/users/wbinnssmith/received_events","type":"User","site_admin":false},"body":"Adding Promise support as we discussed [here](https://github.com/sindresorhus/del/pull/29#issuecomment-136175242).\r\n\r\nI was a little unsure with this since I think it could benefit from supporting both callbacks and promises, but it looks like 99% of the usage of this module is paired with `del` as gulp recommends.\r\n\r\nAlso added xo to keep me sane and since you're moving your stuff towards it :stuck_out_tongue: ","created_at":"2015-08-31T03:38:14Z","updated_at":"2015-08-31T20:21:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d4ed72d1f31da0d026b8036c4b6c8e25980349f4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/pulls/3/commits","review_comments_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/pulls/3/comments","review_comment_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/issues/3/comments","statuses_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/statuses/ca76c6b8eb9fb8dcc7145a9fe9a1725b84558c86","head":{"label":"wbinnssmith:wbinnssmith/promise-api","ref":"wbinnssmith/promise-api","sha":"ca76c6b8eb9fb8dcc7145a9fe9a1725b84558c86","user":{"login":"wbinnssmith","id":755844,"avatar_url":"https://avatars.githubusercontent.com/u/755844?v=3","gravatar_id":"","url":"https://api.github.com/users/wbinnssmith","html_url":"https://github.com/wbinnssmith","followers_url":"https://api.github.com/users/wbinnssmith/followers","following_url":"https://api.github.com/users/wbinnssmith/following{/other_user}","gists_url":"https://api.github.com/users/wbinnssmith/gists{/gist_id}","starred_url":"https://api.github.com/users/wbinnssmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wbinnssmith/subscriptions","organizations_url":"https://api.github.com/users/wbinnssmith/orgs","repos_url":"https://api.github.com/users/wbinnssmith/repos","events_url":"https://api.github.com/users/wbinnssmith/events{/privacy}","received_events_url":"https://api.github.com/users/wbinnssmith/received_events","type":"User","site_admin":false},"repo":{"id":41639399,"name":"vinyl-paths","full_name":"wbinnssmith/vinyl-paths","owner":{"login":"wbinnssmith","id":755844,"avatar_url":"https://avatars.githubusercontent.com/u/755844?v=3","gravatar_id":"","url":"https://api.github.com/users/wbinnssmith","html_url":"https://github.com/wbinnssmith","followers_url":"https://api.github.com/users/wbinnssmith/followers","following_url":"https://api.github.com/users/wbinnssmith/following{/other_user}","gists_url":"https://api.github.com/users/wbinnssmith/gists{/gist_id}","starred_url":"https://api.github.com/users/wbinnssmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wbinnssmith/subscriptions","organizations_url":"https://api.github.com/users/wbinnssmith/orgs","repos_url":"https://api.github.com/users/wbinnssmith/repos","events_url":"https://api.github.com/users/wbinnssmith/events{/privacy}","received_events_url":"https://api.github.com/users/wbinnssmith/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wbinnssmith/vinyl-paths","description":"Get the file paths in a vinyl stream","fork":true,"url":"https://api.github.com/repos/wbinnssmith/vinyl-paths","forks_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/forks","keys_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/teams","hooks_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/hooks","issue_events_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/issues/events{/number}","events_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/events","assignees_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/assignees{/user}","branches_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/branches{/branch}","tags_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/tags","blobs_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/git/refs{/sha}","trees_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/statuses/{sha}","languages_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/languages","stargazers_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/stargazers","contributors_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/contributors","subscribers_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/subscribers","subscription_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/subscription","commits_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/commits{/sha}","git_commits_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/git/commits{/sha}","comments_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/comments{/number}","issue_comment_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/issues/comments{/number}","contents_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/contents/{+path}","compare_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/merges","archive_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/downloads","issues_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/issues{/number}","pulls_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/pulls{/number}","milestones_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/milestones{/number}","notifications_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/labels{/name}","releases_url":"https://api.github.com/repos/wbinnssmith/vinyl-paths/releases{/id}","created_at":"2015-08-30T18:53:44Z","updated_at":"2015-08-30T18:53:45Z","pushed_at":"2015-08-31T20:21:29Z","git_url":"git://github.com/wbinnssmith/vinyl-paths.git","ssh_url":"git@github.com:wbinnssmith/vinyl-paths.git","clone_url":"https://github.com/wbinnssmith/vinyl-paths.git","svn_url":"https://github.com/wbinnssmith/vinyl-paths","homepage":null,"size":85,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"sindresorhus:master","ref":"master","sha":"b694eeff942c74de10dab52240946f904be4b502","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"repo":{"id":26579795,"name":"vinyl-paths","full_name":"sindresorhus/vinyl-paths","owner":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sindresorhus/vinyl-paths","description":"Get the file paths in a vinyl stream","fork":false,"url":"https://api.github.com/repos/sindresorhus/vinyl-paths","forks_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/forks","keys_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/teams","hooks_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/hooks","issue_events_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/issues/events{/number}","events_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/events","assignees_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/assignees{/user}","branches_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/branches{/branch}","tags_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/tags","blobs_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/git/refs{/sha}","trees_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/statuses/{sha}","languages_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/languages","stargazers_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/stargazers","contributors_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/contributors","subscribers_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/subscribers","subscription_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/subscription","commits_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/commits{/sha}","git_commits_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/git/commits{/sha}","comments_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/comments{/number}","issue_comment_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/issues/comments{/number}","contents_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/contents/{+path}","compare_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/merges","archive_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/downloads","issues_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/issues{/number}","pulls_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/pulls{/number}","milestones_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/milestones{/number}","notifications_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/labels{/name}","releases_url":"https://api.github.com/repos/sindresorhus/vinyl-paths/releases{/id}","created_at":"2014-11-13T09:11:41Z","updated_at":"2015-08-19T14:36:53Z","pushed_at":"2015-08-31T20:21:29Z","git_url":"git://github.com/sindresorhus/vinyl-paths.git","ssh_url":"git@github.com:sindresorhus/vinyl-paths.git","clone_url":"https://github.com/sindresorhus/vinyl-paths.git","svn_url":"https://github.com/sindresorhus/vinyl-paths","homepage":null,"size":191,"stargazers_count":24,"watchers_count":24,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/vinyl-paths/pulls/3"},"html":{"href":"https://github.com/sindresorhus/vinyl-paths/pull/3"},"issue":{"href":"https://api.github.com/repos/sindresorhus/vinyl-paths/issues/3"},"comments":{"href":"https://api.github.com/repos/sindresorhus/vinyl-paths/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/sindresorhus/vinyl-paths/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/sindresorhus/vinyl-paths/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sindresorhus/vinyl-paths/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/sindresorhus/vinyl-paths/statuses/ca76c6b8eb9fb8dcc7145a9fe9a1725b84558c86"}}}}