GitHub PullRequestReviewCommentEvent at 2014-06-13 22:35:55
Repository: gulp-gh-pages
Actor: dotch
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/rowoot/gulp-gh-pages/pulls/comments/13774941","id":13774941,"diff_hunk":"@@ -55,20 +87,13 @@ function prepareRepo (remoteUrl, origin, dir) {\n \t\t\t\t}\n \t\t\t});\n \t\t};\n-\t\t// assume that if there is a .git folder it's the right folder\n-\t\tif (fs.existsSync(path.join(dir, '.git'))) {\n-\t\t\tvar repo = git(dir);\n-\t\t\tinitRepo(repo);\n-\t\t} else {\n-\t\t\trimraf.sync(dir);\n-\t\t\tgit.clone(rUrl, dir, function (err, repo) {\n-\t\t\t\tif ( err ) {\n-\t\t\t\t\tdeferred.reject(err);\n-\t\t\t\t} else {\n-\t\t\t\t\tinitRepo(repo);\n-\t\t\t\t}\n-\t\t\t});\n-\t\t}","path":"lib/git.js","position":96,"original_position":96,"commit_id":"ac8f01c36ee0c0737b6fecfe56b6af7cd58a0b36","original_commit_id":"ac8f01c36ee0c0737b6fecfe56b6af7cd58a0b36","user":{"login":"dotch","id":1626020,"avatar_url":"https://avatars.githubusercontent.com/u/1626020?","gravatar_id":"7ad2c466cb8c366412c920e3478f632f","url":"https://api.github.com/users/dotch","html_url":"https://github.com/dotch","followers_url":"https://api.github.com/users/dotch/followers","following_url":"https://api.github.com/users/dotch/following{/other_user}","gists_url":"https://api.github.com/users/dotch/gists{/gist_id}","starred_url":"https://api.github.com/users/dotch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotch/subscriptions","organizations_url":"https://api.github.com/users/dotch/orgs","repos_url":"https://api.github.com/users/dotch/repos","events_url":"https://api.github.com/users/dotch/events{/privacy}","received_events_url":"https://api.github.com/users/dotch/received_events","type":"User","site_admin":false},"body":"we could check if the remote url of the cached repo matches the one we want to have","created_at":"2014-06-13T22:35:55Z","updated_at":"2014-06-13T22:35:55Z","html_url":"https://github.com/rowoot/gulp-gh-pages/pull/23#discussion_r13774941","pull_request_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/rowoot/gulp-gh-pages/pulls/comments/13774941"},"html":{"href":"https://github.com/rowoot/gulp-gh-pages/pull/23#discussion_r13774941"},"pull_request":{"href":"https://api.github.com/repos/rowoot/gulp-gh-pages/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/rowoot/gulp-gh-pages/pulls/23","id":17134673,"html_url":"https://github.com/rowoot/gulp-gh-pages/pull/23","diff_url":"https://github.com/rowoot/gulp-gh-pages/pull/23.diff","patch_url":"https://github.com/rowoot/gulp-gh-pages/pull/23.patch","issue_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/issues/23","number":23,"state":"open","title":"always create new repository in tmpDir","user":{"login":"dotch","id":1626020,"avatar_url":"https://avatars.githubusercontent.com/u/1626020?","gravatar_id":"7ad2c466cb8c366412c920e3478f632f","url":"https://api.github.com/users/dotch","html_url":"https://github.com/dotch","followers_url":"https://api.github.com/users/dotch/followers","following_url":"https://api.github.com/users/dotch/following{/other_user}","gists_url":"https://api.github.com/users/dotch/gists{/gist_id}","starred_url":"https://api.github.com/users/dotch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotch/subscriptions","organizations_url":"https://api.github.com/users/dotch/orgs","repos_url":"https://api.github.com/users/dotch/repos","events_url":"https://api.github.com/users/dotch/events{/privacy}","received_events_url":"https://api.github.com/users/dotch/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-06-13T22:16:57Z","updated_at":"2014-06-13T22:35:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"350cda4df5fc97c285b360155ff9b2875735c7e0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/pulls/23/commits","review_comments_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/pulls/23/comments","review_comment_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/pulls/comments/{number}","comments_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/issues/23/comments","statuses_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/statuses/ac8f01c36ee0c0737b6fecfe56b6af7cd58a0b36","head":{"label":"dotch:master","ref":"master","sha":"ac8f01c36ee0c0737b6fecfe56b6af7cd58a0b36","user":{"login":"dotch","id":1626020,"avatar_url":"https://avatars.githubusercontent.com/u/1626020?","gravatar_id":"7ad2c466cb8c366412c920e3478f632f","url":"https://api.github.com/users/dotch","html_url":"https://github.com/dotch","followers_url":"https://api.github.com/users/dotch/followers","following_url":"https://api.github.com/users/dotch/following{/other_user}","gists_url":"https://api.github.com/users/dotch/gists{/gist_id}","starred_url":"https://api.github.com/users/dotch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotch/subscriptions","organizations_url":"https://api.github.com/users/dotch/orgs","repos_url":"https://api.github.com/users/dotch/repos","events_url":"https://api.github.com/users/dotch/events{/privacy}","received_events_url":"https://api.github.com/users/dotch/received_events","type":"User","site_admin":false},"repo":{"id":20235884,"name":"gulp-gh-pages","full_name":"dotch/gulp-gh-pages","owner":{"login":"dotch","id":1626020,"avatar_url":"https://avatars.githubusercontent.com/u/1626020?","gravatar_id":"7ad2c466cb8c366412c920e3478f632f","url":"https://api.github.com/users/dotch","html_url":"https://github.com/dotch","followers_url":"https://api.github.com/users/dotch/followers","following_url":"https://api.github.com/users/dotch/following{/other_user}","gists_url":"https://api.github.com/users/dotch/gists{/gist_id}","starred_url":"https://api.github.com/users/dotch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotch/subscriptions","organizations_url":"https://api.github.com/users/dotch/orgs","repos_url":"https://api.github.com/users/dotch/repos","events_url":"https://api.github.com/users/dotch/events{/privacy}","received_events_url":"https://api.github.com/users/dotch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dotch/gulp-gh-pages","description":"Gulp plugin to publish to Github pages (gh-pages branch).","fork":true,"url":"https://api.github.com/repos/dotch/gulp-gh-pages","forks_url":"https://api.github.com/repos/dotch/gulp-gh-pages/forks","keys_url":"https://api.github.com/repos/dotch/gulp-gh-pages/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotch/gulp-gh-pages/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotch/gulp-gh-pages/teams","hooks_url":"https://api.github.com/repos/dotch/gulp-gh-pages/hooks","issue_events_url":"https://api.github.com/repos/dotch/gulp-gh-pages/issues/events{/number}","events_url":"https://api.github.com/repos/dotch/gulp-gh-pages/events","assignees_url":"https://api.github.com/repos/dotch/gulp-gh-pages/assignees{/user}","branches_url":"https://api.github.com/repos/dotch/gulp-gh-pages/branches{/branch}","tags_url":"https://api.github.com/repos/dotch/gulp-gh-pages/tags","blobs_url":"https://api.github.com/repos/dotch/gulp-gh-pages/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotch/gulp-gh-pages/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotch/gulp-gh-pages/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotch/gulp-gh-pages/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotch/gulp-gh-pages/statuses/{sha}","languages_url":"https://api.github.com/repos/dotch/gulp-gh-pages/languages","stargazers_url":"https://api.github.com/repos/dotch/gulp-gh-pages/stargazers","contributors_url":"https://api.github.com/repos/dotch/gulp-gh-pages/contributors","subscribers_url":"https://api.github.com/repos/dotch/gulp-gh-pages/subscribers","subscription_url":"https://api.github.com/repos/dotch/gulp-gh-pages/subscription","commits_url":"https://api.github.com/repos/dotch/gulp-gh-pages/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotch/gulp-gh-pages/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotch/gulp-gh-pages/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotch/gulp-gh-pages/issues/comments/{number}","contents_url":"https://api.github.com/repos/dotch/gulp-gh-pages/contents/{+path}","compare_url":"https://api.github.com/repos/dotch/gulp-gh-pages/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotch/gulp-gh-pages/merges","archive_url":"https://api.github.com/repos/dotch/gulp-gh-pages/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotch/gulp-gh-pages/downloads","issues_url":"https://api.github.com/repos/dotch/gulp-gh-pages/issues{/number}","pulls_url":"https://api.github.com/repos/dotch/gulp-gh-pages/pulls{/number}","milestones_url":"https://api.github.com/repos/dotch/gulp-gh-pages/milestones{/number}","notifications_url":"https://api.github.com/repos/dotch/gulp-gh-pages/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotch/gulp-gh-pages/labels{/name}","releases_url":"https://api.github.com/repos/dotch/gulp-gh-pages/releases{/id}","created_at":"2014-05-27T21:17:46Z","updated_at":"2014-06-13T22:16:57Z","pushed_at":"2014-06-13T22:07:10Z","git_url":"git://github.com/dotch/gulp-gh-pages.git","ssh_url":"git@github.com:dotch/gulp-gh-pages.git","clone_url":"https://github.com/dotch/gulp-gh-pages.git","svn_url":"https://github.com/dotch/gulp-gh-pages","homepage":null,"size":291,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rowoot:master","ref":"master","sha":"5c6d7a5e23583032bd5528bb81e00d1afb376bff","user":{"login":"rowoot","id":29519,"avatar_url":"https://avatars.githubusercontent.com/u/29519?","gravatar_id":"f2be93ff1a7c3597076f0c91b57bf173","url":"https://api.github.com/users/rowoot","html_url":"https://github.com/rowoot","followers_url":"https://api.github.com/users/rowoot/followers","following_url":"https://api.github.com/users/rowoot/following{/other_user}","gists_url":"https://api.github.com/users/rowoot/gists{/gist_id}","starred_url":"https://api.github.com/users/rowoot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowoot/subscriptions","organizations_url":"https://api.github.com/users/rowoot/orgs","repos_url":"https://api.github.com/users/rowoot/repos","events_url":"https://api.github.com/users/rowoot/events{/privacy}","received_events_url":"https://api.github.com/users/rowoot/received_events","type":"User","site_admin":false},"repo":{"id":17558946,"name":"gulp-gh-pages","full_name":"rowoot/gulp-gh-pages","owner":{"login":"rowoot","id":29519,"avatar_url":"https://avatars.githubusercontent.com/u/29519?","gravatar_id":"f2be93ff1a7c3597076f0c91b57bf173","url":"https://api.github.com/users/rowoot","html_url":"https://github.com/rowoot","followers_url":"https://api.github.com/users/rowoot/followers","following_url":"https://api.github.com/users/rowoot/following{/other_user}","gists_url":"https://api.github.com/users/rowoot/gists{/gist_id}","starred_url":"https://api.github.com/users/rowoot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowoot/subscriptions","organizations_url":"https://api.github.com/users/rowoot/orgs","repos_url":"https://api.github.com/users/rowoot/repos","events_url":"https://api.github.com/users/rowoot/events{/privacy}","received_events_url":"https://api.github.com/users/rowoot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rowoot/gulp-gh-pages","description":"Gulp plugin to publish to Github pages (gh-pages branch).","fork":false,"url":"https://api.github.com/repos/rowoot/gulp-gh-pages","forks_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/forks","keys_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/teams","hooks_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/hooks","issue_events_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/issues/events{/number}","events_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/events","assignees_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/assignees{/user}","branches_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/branches{/branch}","tags_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/tags","blobs_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/git/refs{/sha}","trees_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/statuses/{sha}","languages_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/languages","stargazers_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/stargazers","contributors_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/contributors","subscribers_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/subscribers","subscription_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/subscription","commits_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/commits{/sha}","git_commits_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/git/commits{/sha}","comments_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/comments{/number}","issue_comment_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/issues/comments/{number}","contents_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/contents/{+path}","compare_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/merges","archive_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/downloads","issues_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/issues{/number}","pulls_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/pulls{/number}","milestones_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/milestones{/number}","notifications_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/labels{/name}","releases_url":"https://api.github.com/repos/rowoot/gulp-gh-pages/releases{/id}","created_at":"2014-03-09T06:08:54Z","updated_at":"2014-06-02T14:20:52Z","pushed_at":"2014-06-02T14:20:52Z","git_url":"git://github.com/rowoot/gulp-gh-pages.git","ssh_url":"git@github.com:rowoot/gulp-gh-pages.git","clone_url":"https://github.com/rowoot/gulp-gh-pages.git","svn_url":"https://github.com/rowoot/gulp-gh-pages","homepage":null,"size":561,"stargazers_count":21,"watchers_count":21,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":7,"mirror_url":null,"open_issues_count":4,"forks":7,"open_issues":4,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rowoot/gulp-gh-pages/pulls/23"},"html":{"href":"https://github.com/rowoot/gulp-gh-pages/pull/23"},"issue":{"href":"https://api.github.com/repos/rowoot/gulp-gh-pages/issues/23"},"comments":{"href":"https://api.github.com/repos/rowoot/gulp-gh-pages/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/rowoot/gulp-gh-pages/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/rowoot/gulp-gh-pages/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/rowoot/gulp-gh-pages/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/rowoot/gulp-gh-pages/statuses/ac8f01c36ee0c0737b6fecfe56b6af7cd58a0b36"}}}}