From 8ba8634ac961f9fd08c7b1fefb43872654746129 Mon Sep 17 00:00:00 2001 From: mandoz Date: Mon, 25 Apr 2016 16:41:29 +0200 Subject: [PATCH 1/2] Use ssh authentication instead of https --- lib/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/api.js b/lib/api.js index 933abeb..fa60ec6 100644 --- a/lib/api.js +++ b/lib/api.js @@ -347,7 +347,7 @@ function getRepos(token, username, callback) { owner: githubRepo.owner.login, repo: githubRepo.name, auth: { - type: 'https' + type: 'ssh' } } }); @@ -457,7 +457,7 @@ function getRepos(token, username, callback) { owner: team_repo.owner.login, repo: team_repo.name, auth: { - type: 'https' + type: 'ssh' } } }); From 0c4980536a174184d29478dac5045d36d4b1f7da Mon Sep 17 00:00:00 2001 From: mandoz Date: Mon, 25 Apr 2016 18:56:13 +0200 Subject: [PATCH 2/2] Fixed failing unit test because of authentication type change --- test/test_api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_api.js b/test/test_api.js index b53b281..440b05d 100644 --- a/test/test_api.js +++ b/test/test_api.js @@ -75,7 +75,7 @@ describe('github api', function () { { url: 'git://github.com/stridertester/proj1.git', owner: 'stridertester', repo: 'proj1', - auth: { type: 'https' } } }, + auth: { type: 'ssh' } } }, { id: 40900394, name: 'stridertestersunion/union-proj-1', display_name: 'stridertestersunion/union-proj-1', @@ -85,7 +85,7 @@ describe('github api', function () { { url: 'git://github.com/stridertestersunion/union-proj-1.git', owner: 'stridertestersunion', repo: 'union-proj-1', - auth: { type: 'https' } } } + auth: { type: 'ssh' } } } ] ); ///console.log(util.inspect(repos, false, 10, true));