diff --git a/README.md b/README.md index b711c9af..c3e2abe9 100644 --- a/README.md +++ b/README.md @@ -1239,6 +1239,12 @@ You can also set per-project configurations by adding a `.gh.json` file in your "signature": "

:octocat: *Sent from [GH](http://nodegh.io).*" ``` +- Turn off ssh when pulling a repo and use https instead. + +```javascript +"ssh": false, +``` + If you need to use a custom git command, set the environment variable `GH_GIT_COMMAND`. ## Plugins diff --git a/lib/cmds/pull-request.js b/lib/cmds/pull-request.js index 985ac0c5..7b94425a 100755 --- a/lib/cmds/pull-request.js +++ b/lib/cmds/pull-request.js @@ -337,7 +337,7 @@ PullRequest.prototype.fetch = function(opt_type, opt_callback) { } headBranch = pull.head.ref - repoUrl = pull.head.repo.ssh_url + repoUrl = config.ssh === false ? pull.head.repo.clone_url : pull.head.repo.ssh_url git.fetch(repoUrl, headBranch, options.pullBranch) diff --git a/lib/default.gh.json b/lib/default.gh.json index 2b4e1550..ba906bcd 100644 --- a/lib/default.gh.json +++ b/lib/default.gh.json @@ -115,5 +115,9 @@ "replace": {}, + "ssh": true, + + "color": true, + "signature": "

:octocat: *Sent from [GH](http://nodegh.io).*" }