From 98c574f97f04677ea10417d4bf6d81bf6c3e54c6 Mon Sep 17 00:00:00 2001 From: Shane Lacey Date: Fri, 8 Apr 2016 15:33:49 +0100 Subject: [PATCH 1/2] Added linting command to package --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 51c4241..ec0eaa9 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "description": "A micro-service that provides Github related information to NodeZoo", "scripts": { "start": "node srv/start.js", - "isolated": "GITHUB_ISOLATED=true node srv/start.js" + "isolated": "GITHUB_ISOLATED=true node srv/start.js", + "lint": "lab test -dL" }, "main": "lib/github.js", "keywords": [ From ae33f665f83174afac1c4f31c5b88f8d2681a742 Mon Sep 17 00:00:00 2001 From: Shane Lacey Date: Fri, 8 Apr 2016 16:15:19 +0100 Subject: [PATCH 2/2] Changed urlSSH to urlSsh to match nodezoo-web --- lib/github.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/github.js b/lib/github.js index 26ebc7e..c5017aa 100644 --- a/lib/github.js +++ b/lib/github.js @@ -101,7 +101,7 @@ function queryGithub (msg, done) { last: repo.pushed_at || '', urlRepo: 'https://github.com/' + msg.user + '/' + msg.repo, urlClone: 'git+https://github.com/' + msg.user + '/' + msg.repo + '.git', - urlSSH: 'git@github.com:' + msg.user + '/' + msg.repo + '.git', + urlSsh: 'git@github.com:' + msg.user + '/' + msg.repo + '.git', pullRequests: prs && prs.length || 0, cached: Date.now() }