From 467635bc14eafab453a5e6bdea844f1ebaa14de4 Mon Sep 17 00:00:00 2001 From: Pierre Vanduynslager Date: Sat, 27 Jan 2018 20:09:53 -0500 Subject: [PATCH] fix: prioritize `GIT_CREDENTIALS` for gtit credentials Allow to defined a both `GIT_CREDENTIALS` for repository access and `GH_TOKEN` or `GL_TOKEN` for API access --- lib/get-git-auth-url.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/get-git-auth-url.js b/lib/get-git-auth-url.js index 3f12665e..2ee3f9d3 100644 --- a/lib/get-git-auth-url.js +++ b/lib/get-git-auth-url.js @@ -2,7 +2,7 @@ const {parse, format} = require('url'); const {isUndefined} = require('lodash'); const gitUrlParse = require('git-url-parse'); -const GIT_TOKENS = ['GH_TOKEN', 'GITHUB_TOKEN', 'GL_TOKEN', 'GITLAB_TOKEN', 'GIT_CREDENTIALS']; +const GIT_TOKENS = ['GIT_CREDENTIALS', 'GH_TOKEN', 'GITHUB_TOKEN', 'GL_TOKEN', 'GITLAB_TOKEN']; /** * Generate the git repository URL with creadentials.