2017-01-20 13:03:18 +00:00
// const logger = require('winston');
module . exports = {
getOptions ,
} ;
const options = [
{
name : 'enabled' ,
description : 'Enable or disable renovate' ,
type : 'boolean' ,
} ,
2017-01-30 06:34:35 +00:00
{
name : 'onboarding' ,
description : 'Require a Configuration PR first' ,
type : 'boolean' ,
} ,
2017-01-31 17:16:33 +00:00
{
name : 'platform' ,
description : 'Platform type of repository' ,
type : 'string' ,
default : 'github' ,
} ,
2017-02-05 08:10:29 +00:00
{
name : 'endpoint' ,
description : 'Custom endpoint to use' ,
type : 'string' ,
} ,
2017-01-20 13:03:18 +00:00
{
name : 'token' ,
2017-01-31 17:16:33 +00:00
description : 'Repository Auth Token' ,
2017-01-20 13:03:18 +00:00
type : 'string' ,
} ,
2017-04-21 05:00:26 +00:00
{
name : 'autodiscover' ,
description : 'Autodiscover all repositories' ,
type : 'boolean' ,
default : false ,
} ,
2017-06-02 20:06:15 +00:00
{
name : 'githubAppId' ,
description : 'GitHub App ID (enables GitHub App functionality if set)' ,
type : 'integer' ,
} ,
{
name : 'githubAppKey' ,
description : 'GitHub App Private Key (.pem file contents)' ,
type : 'string' ,
} ,
2017-01-20 13:03:18 +00:00
{
name : 'repositories' ,
2017-03-13 09:07:57 +00:00
description : 'List of Repositories' ,
2017-01-20 13:03:18 +00:00
type : 'list' ,
cli : false ,
} ,
{
name : 'packageFiles' ,
description : 'Package file paths' ,
type : 'list' ,
} ,
{
name : 'depTypes' ,
description : 'Dependency types' ,
type : 'list' ,
default : [ 'dependencies' , 'devDependencies' , 'optionalDependencies' ] ,
} ,
// Version behaviour
2017-04-15 10:44:50 +00:00
{
name : 'separateMajorReleases' ,
2017-06-02 20:40:00 +00:00
description :
'If set to false, it will upgrade dependencies to latest release only, and not separate major/minor branches' ,
2017-04-15 10:44:50 +00:00
type : 'boolean' ,
} ,
2017-01-20 13:03:18 +00:00
{
name : 'ignoreDeps' ,
description : 'Dependencies to ignore' ,
type : 'list' ,
} ,
{
name : 'ignoreFuture' ,
description : 'Ignore versions tagged as "future"' ,
type : 'boolean' ,
} ,
{
name : 'ignoreUnstable' ,
description : 'Ignore versions with unstable semver' ,
type : 'boolean' ,
} ,
{
name : 'respectLatest' ,
description : 'Ignore versions newer than npm "latest" version' ,
type : 'boolean' ,
} ,
// PR Behaviour
{
name : 'recreateClosed' ,
description : 'Recreate PRs even if same ones were closed previously' ,
type : 'boolean' ,
default : false ,
} ,
2017-02-06 06:56:33 +00:00
{
name : 'rebaseStalePrs' ,
2017-03-13 09:07:57 +00:00
description : 'Rebase stale PRs (GitHub only)' ,
2017-02-06 06:56:33 +00:00
type : 'boolean' ,
default : false ,
} ,
2017-04-17 04:46:24 +00:00
{
name : 'prCreation' ,
2017-06-02 20:40:00 +00:00
description :
'When to create the PR for a branch. Values: immediate, not-pending, status-success.' ,
2017-04-17 04:46:24 +00:00
type : 'string' ,
default : 'immediate' ,
} ,
2017-04-20 11:01:23 +00:00
// Automatic merging
{
name : 'automerge' ,
2017-06-02 20:40:00 +00:00
description :
'What types of upgrades to merge to base branch automatically. Values: none, minor or any' ,
2017-04-20 11:01:23 +00:00
type : 'string' ,
default : 'none' ,
} ,
2017-01-20 13:03:18 +00:00
// String templates
{
name : 'branchName' ,
description : 'Branch name template' ,
type : 'string' ,
default : 'renovate/{{depName}}-{{newVersionMajor}}.x' ,
cli : false ,
} ,
{
name : 'commitMessage' ,
description : 'Commit message template' ,
type : 'string' ,
default : 'Update dependency {{depName}} to version {{newVersion}}' ,
cli : false ,
} ,
{
name : 'prTitle' ,
description : 'Pull Request title template' ,
type : 'string' ,
2017-06-02 20:40:00 +00:00
default :
'{{#if isPin}}Pin{{else}}Update{{/if}} dependency {{depName}} to version {{#if isRange}}{{newVersion}}{{else}}{{#if isMajor}}{{newVersionMajor}}.x{{else}}{{newVersion}}{{/if}}{{/if}}' ,
2017-01-20 13:03:18 +00:00
cli : false ,
} ,
{
name : 'prBody' ,
description : 'Pull Request body template' ,
type : 'string' ,
2017-06-02 20:40:00 +00:00
default :
'This Pull Request updates dependency {{depName}} from version `{{currentVersion}}` to `{{newVersion}}`\n\n{{changelog}}' ,
2017-01-20 13:03:18 +00:00
cli : false ,
} ,
2017-04-13 20:39:46 +00:00
// Yarn Lock Maintenance
{
name : 'maintainYarnLock' ,
2017-04-17 02:54:42 +00:00
description : 'Keep yarn.lock files updated in base branch' ,
2017-04-13 20:39:46 +00:00
type : 'boolean' ,
default : false ,
} ,
{
name : 'yarnMaintenanceBranchName' ,
description : 'Branch name template when maintaining yarn.lock' ,
type : 'string' ,
default : 'renovate/yarn-lock' ,
cli : false ,
} ,
{
name : 'yarnMaintenanceCommitMessage' ,
description : 'Commit message template when maintaining yarn.lock' ,
type : 'string' ,
default : 'Renovate yarn.lock file' ,
cli : false ,
} ,
{
name : 'yarnMaintenancePrTitle' ,
description : 'Pull Request title template when maintaining yarn.lock' ,
type : 'string' ,
default : 'Renovate yarn.lock file' ,
cli : false ,
} ,
{
name : 'yarnMaintenancePrBody' ,
description : 'Pull Request body template when maintaining yarn.lock' ,
type : 'string' ,
2017-06-02 20:40:00 +00:00
default :
'This PR regenerates yarn.lock files based on the existing `package.json` files.' ,
2017-04-13 20:39:46 +00:00
cli : false ,
} ,
2017-04-15 20:04:14 +00:00
// Dependency Groups
{
name : 'groupName' ,
description : 'Human understandable name for the dependency group' ,
type : 'string' ,
default : null ,
} ,
{
name : 'groupSlug' ,
2017-06-02 20:40:00 +00:00
description :
'Slug to use for group (e.g. in branch name). Will be calculated from groupName if null' ,
2017-04-15 20:04:14 +00:00
type : 'string' ,
default : null ,
} ,
{
name : 'groupBranchName' ,
description : 'Branch name template for the group' ,
type : 'string' ,
default : 'renovate/{{groupSlug}}' ,
cli : false ,
} ,
{
name : 'groupCommitMessage' ,
description : 'Group commit message' ,
type : 'string' ,
default : 'Renovate {{groupName}} packages' ,
cli : false ,
} ,
{
name : 'groupPrTitle' ,
description : 'Pull Request title template for the group' ,
type : 'string' ,
default : 'Renovate {{groupName}} packages' ,
cli : false ,
} ,
{
name : 'groupPrBody' ,
description : 'Pull Request body template for the group' ,
type : 'string' ,
default : 'This PR renovates the package group "{{groupName}}".' ,
cli : false ,
} ,
2017-01-20 13:03:18 +00:00
// Pull Request options
{
name : 'labels' ,
description : 'Labels to add to Pull Request' ,
type : 'list' ,
} ,
{
name : 'assignees' ,
description : 'Assignees for Pull Request' ,
type : 'list' ,
} ,
2017-01-31 13:54:16 +00:00
{
name : 'reviewers' ,
2017-03-13 09:07:57 +00:00
description : 'Requested reviewers for Pull Requests (GitHub only)' ,
2017-01-31 13:54:16 +00:00
type : 'list' ,
} ,
2017-04-13 19:22:24 +00:00
{
name : 'pinVersions' ,
description : 'Convert ranged versions in package.json to pinned versions' ,
type : 'boolean' ,
} ,
2017-01-20 13:03:18 +00:00
// Debug options
{
name : 'logLevel' ,
description : 'Logging level' ,
type : 'string' ,
default : 'info' ,
env : 'LOG_LEVEL' ,
} ,
] ;
function getOptions ( ) {
return options ;
}