Skip to content

Commit 9c6a8a4

Browse files
author
Ilya Radchenko
committed
Merge pull request #69 from mandoz/feature/ssh-instead-of-https
Use ssh authentication instead of https
2 parents 766d09b + 0c49805 commit 9c6a8a4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ function getRepos(token, username, callback) {
347347
owner: githubRepo.owner.login,
348348
repo: githubRepo.name,
349349
auth: {
350-
type: 'https'
350+
type: 'ssh'
351351
}
352352
}
353353
});
@@ -457,7 +457,7 @@ function getRepos(token, username, callback) {
457457
owner: team_repo.owner.login,
458458
repo: team_repo.name,
459459
auth: {
460-
type: 'https'
460+
type: 'ssh'
461461
}
462462
}
463463
});

test/test_api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ describe('github api', function () {
7575
{ url: 'git://github.com/stridertester/proj1.git',
7676
owner: 'stridertester',
7777
repo: 'proj1',
78-
auth: { type: 'https' } } },
78+
auth: { type: 'ssh' } } },
7979
{ id: 40900394,
8080
name: 'stridertestersunion/union-proj-1',
8181
display_name: 'stridertestersunion/union-proj-1',
@@ -85,7 +85,7 @@ describe('github api', function () {
8585
{ url: 'git://github.com/stridertestersunion/union-proj-1.git',
8686
owner: 'stridertestersunion',
8787
repo: 'union-proj-1',
88-
auth: { type: 'https' } } }
88+
auth: { type: 'ssh' } } }
8989
]
9090
);
9191
///console.log(util.inspect(repos, false, 10, true));

0 commit comments

Comments
 (0)