diff --git a/package.json b/package.json index 310ce11e..149dd412 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "bin": { "all-contributors": "dist/cli.js" }, - "files": ["dist"], + "files": [ + "dist" + ], "engines": { "node": ">=4" }, @@ -21,7 +23,10 @@ "type": "git", "url": "https://github.com/jfmengels/all-contributors-cli.git" }, - "keywords": ["all-contributors", "contributors"], + "keywords": [ + "all-contributors", + "contributors" + ], "author": "Jeroen Engels ", "license": "MIT", "bugs": { @@ -41,7 +46,11 @@ "kcd-scripts": "^0.29.0", "nock": "^9.1.0" }, - "eslintIgnore": ["node_modules", "coverage", "dist"], + "eslintIgnore": [ + "node_modules", + "coverage", + "dist" + ], "eslintConfig": { "extends": "./node_modules/kcd-scripts/eslint.js", "rules": { diff --git a/src/repo/__tests__/gitlab.js b/src/repo/__tests__/gitlab.js index 3e45b630..c00f708e 100644 --- a/src/repo/__tests__/gitlab.js +++ b/src/repo/__tests__/gitlab.js @@ -106,7 +106,7 @@ test('retrieve user from a different gitlab registry', async () => { test('retrieve user from a gitlab registry that needs a token', async () => { nock('http://gitlab.needtoken.com:3000') - .get('/api/v4/users?username=nodisplayname&privateToken=faketoken') + .get('/api/v4/users?username=nodisplayname&private_token=faketoken') .reply(200, [ { username: 'nodisplayname', diff --git a/src/repo/gitlab.js b/src/repo/gitlab.js index 1dad3acb..2e50154d 100644 --- a/src/repo/gitlab.js +++ b/src/repo/gitlab.js @@ -4,7 +4,7 @@ const request = pify(require('request')) const addPrivateToken = (url, privateToken = '') => { if (privateToken === '') return url - return `${url}&privateToken=${privateToken}` + return `${url}&private_token=${privateToken}` .replace(/\?/g, '&') .replace('&', '?') }