mirror of
https://github.com/all-contributors/cli.git
synced 2025-01-09 13:36:29 +00:00
feat: add namespaced token (#296)
* feat: add namespaced token This commit adds the possibility to specify the private token via the ALL_CONTRIBUTORS_PRIVATE_TOKEN environment variable. If the environment variable is not set it will fall back to the previous behavior and check for PRIVATE_TOKEN instead. Closes #294 * style: remove irregular whitespace * refactor: remove unneeded parenthesis
This commit is contained in:
parent
f1dc01d714
commit
a8227af31c
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
const githubAPI = require('./github')
|
const githubAPI = require('./github')
|
||||||
const gitlabAPI = require('./gitlab')
|
const gitlabAPI = require('./gitlab')
|
||||||
|
|
||||||
const privateToken = (process.env && process.env.PRIVATE_TOKEN) || ''
|
const privateToken = (process.env && (process.env.ALL_CONTRIBUTORS_PRIVATE_TOKEN || process.env.PRIVATE_TOKEN)) || ''
|
||||||
const SUPPORTED_REPO_TYPES = {
|
const SUPPORTED_REPO_TYPES = {
|
||||||
github: {
|
github: {
|
||||||
value: 'github',
|
value: 'github',
|
||||||
|
|
Loading…
Reference in a new issue