2019-01-06 13:47:42 +00:00
|
|
|
const { appName, appSlug, urls } = require('./app-strings');
|
|
|
|
|
2017-01-20 13:03:18 +00:00
|
|
|
module.exports = {
|
|
|
|
getOptions,
|
|
|
|
};
|
|
|
|
|
|
|
|
const options = [
|
2017-08-18 04:10:19 +00:00
|
|
|
{
|
|
|
|
name: 'extends',
|
2017-12-26 05:28:28 +00:00
|
|
|
description:
|
|
|
|
'Configuration presets to use/extend. Note: does not work if configured in config.js',
|
2017-08-18 04:10:19 +00:00
|
|
|
stage: 'package',
|
|
|
|
type: 'list',
|
|
|
|
allowString: true,
|
|
|
|
cli: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'description',
|
|
|
|
description: 'Plain text description for a config or preset',
|
|
|
|
type: 'list',
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'repository',
|
2017-08-18 04:10:19 +00:00
|
|
|
allowString: true,
|
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
env: false,
|
|
|
|
},
|
2017-01-20 13:03:18 +00:00
|
|
|
{
|
|
|
|
name: 'enabled',
|
2019-01-06 13:47:42 +00:00
|
|
|
description: `Enable or disable ${appName}`,
|
2017-07-03 08:31:36 +00:00
|
|
|
stage: 'package',
|
2017-01-20 13:03:18 +00:00
|
|
|
type: 'boolean',
|
2017-07-03 09:34:46 +00:00
|
|
|
cli: false,
|
|
|
|
env: false,
|
|
|
|
},
|
2018-06-21 08:23:59 +00:00
|
|
|
{
|
|
|
|
name: 'force',
|
|
|
|
description:
|
|
|
|
'Any configuration defined within this object will force override existing settings',
|
2018-07-05 10:37:46 +00:00
|
|
|
stage: 'package',
|
2018-06-21 08:23:59 +00:00
|
|
|
admin: true,
|
|
|
|
type: 'json',
|
|
|
|
cli: false,
|
|
|
|
env: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'forceCli',
|
|
|
|
description:
|
|
|
|
'Whether CLI configuration options should be moved to the `force` config section',
|
|
|
|
stage: 'global',
|
|
|
|
type: 'boolean',
|
|
|
|
default: false,
|
|
|
|
},
|
2018-10-26 07:48:49 +00:00
|
|
|
{
|
|
|
|
name: 'dryRun',
|
|
|
|
description:
|
2019-01-06 13:47:42 +00:00
|
|
|
'If enabled, perform a dry run by logging messages instead of creating/updating/deleting branches and PRs',
|
2018-10-26 07:48:49 +00:00
|
|
|
type: 'boolean',
|
|
|
|
admin: true,
|
|
|
|
default: false,
|
|
|
|
},
|
2018-12-10 07:53:55 +00:00
|
|
|
{
|
|
|
|
name: 'printConfig',
|
|
|
|
description:
|
2019-01-06 13:47:42 +00:00
|
|
|
'If enabled, log the full resolved config for each repo, including resolved presets',
|
2018-12-10 07:53:55 +00:00
|
|
|
type: 'boolean',
|
|
|
|
admin: true,
|
|
|
|
default: false,
|
|
|
|
},
|
2018-09-14 18:38:52 +00:00
|
|
|
{
|
|
|
|
name: 'binarySource',
|
2019-01-30 20:17:10 +00:00
|
|
|
description:
|
|
|
|
'Where to source binaries like `npm` and `yarn` from, choices are `bundled`, `global` and `docker`',
|
2018-09-14 18:38:52 +00:00
|
|
|
admin: true,
|
|
|
|
type: 'string',
|
|
|
|
default: 'bundled',
|
|
|
|
},
|
2017-07-03 09:34:46 +00:00
|
|
|
// Log options
|
|
|
|
{
|
|
|
|
name: 'logLevel',
|
|
|
|
description: 'Logging level',
|
|
|
|
stage: 'global',
|
|
|
|
type: 'string',
|
|
|
|
default: 'info',
|
|
|
|
env: 'LOG_LEVEL',
|
2017-01-20 13:03:18 +00:00
|
|
|
},
|
2017-06-20 19:34:25 +00:00
|
|
|
{
|
|
|
|
name: 'logFile',
|
|
|
|
description: 'Log file path',
|
2017-07-03 08:31:36 +00:00
|
|
|
stage: 'global',
|
2017-06-20 19:34:25 +00:00
|
|
|
type: 'string',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'logFileLevel',
|
|
|
|
description: 'Log file log level',
|
2017-07-03 08:31:36 +00:00
|
|
|
stage: 'global',
|
2017-06-20 19:34:25 +00:00
|
|
|
type: 'string',
|
|
|
|
default: 'debug',
|
|
|
|
},
|
2017-07-03 09:34:46 +00:00
|
|
|
// Onboarding
|
|
|
|
{
|
|
|
|
name: 'onboarding',
|
|
|
|
description: 'Require a Configuration PR first',
|
|
|
|
stage: 'repository',
|
|
|
|
type: 'boolean',
|
2017-12-26 04:40:14 +00:00
|
|
|
admin: true,
|
2017-07-03 09:34:46 +00:00
|
|
|
},
|
2018-02-21 18:50:58 +00:00
|
|
|
{
|
|
|
|
name: 'onboardingConfig',
|
|
|
|
description: 'Configuration to use in onboarding PRs',
|
|
|
|
stage: 'repository',
|
|
|
|
type: 'json',
|
2018-04-09 05:25:24 +00:00
|
|
|
default: {},
|
2018-02-21 18:50:58 +00:00
|
|
|
admin: true,
|
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
},
|
2017-11-01 10:53:18 +00:00
|
|
|
{
|
2018-12-31 05:46:00 +00:00
|
|
|
name: 'includeForks',
|
|
|
|
description:
|
|
|
|
'Whether to process forked repositories or not. By default, all forked repositories are skipped over.',
|
2017-11-01 10:53:18 +00:00
|
|
|
stage: 'repository',
|
|
|
|
type: 'boolean',
|
|
|
|
default: false,
|
|
|
|
},
|
2017-12-11 18:14:51 +00:00
|
|
|
{
|
|
|
|
name: 'forkMode',
|
|
|
|
description:
|
2019-01-06 13:47:42 +00:00
|
|
|
'Set to true to fork the source repository and create branches there instead',
|
2017-12-11 18:14:51 +00:00
|
|
|
stage: 'repository',
|
|
|
|
type: 'boolean',
|
|
|
|
default: false,
|
2017-12-26 04:40:14 +00:00
|
|
|
admin: true,
|
2017-12-11 18:14:51 +00:00
|
|
|
},
|
2018-03-21 09:08:55 +00:00
|
|
|
{
|
|
|
|
name: 'requireConfig',
|
2019-01-06 13:47:42 +00:00
|
|
|
description: 'Set to true if repositories must have a config to activate.',
|
2018-03-21 09:08:55 +00:00
|
|
|
stage: 'repository',
|
|
|
|
type: 'boolean',
|
|
|
|
default: false,
|
|
|
|
admin: true,
|
|
|
|
},
|
2017-09-01 04:45:51 +00:00
|
|
|
// encryption
|
|
|
|
{
|
|
|
|
name: 'privateKey',
|
|
|
|
description: 'Server-side private key',
|
|
|
|
stage: 'repository',
|
|
|
|
type: 'string',
|
|
|
|
replaceLineReturns: true,
|
2017-12-26 04:40:14 +00:00
|
|
|
admin: true,
|
2017-09-01 04:45:51 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'encrypted',
|
|
|
|
description:
|
2019-01-06 13:47:42 +00:00
|
|
|
'A configuration object containing configuration encrypted with project key.',
|
2017-09-01 04:45:51 +00:00
|
|
|
stage: 'repository',
|
|
|
|
type: 'json',
|
|
|
|
default: null,
|
|
|
|
},
|
2017-07-03 09:34:46 +00:00
|
|
|
// Scheduling
|
2017-06-30 12:04:46 +00:00
|
|
|
{
|
|
|
|
name: 'timezone',
|
|
|
|
description:
|
|
|
|
'[IANA Time Zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)',
|
|
|
|
type: 'string',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'schedule',
|
2019-01-06 13:47:42 +00:00
|
|
|
description: 'Times of day/week to limit branch creation to',
|
2017-06-30 12:04:46 +00:00
|
|
|
type: 'list',
|
2017-08-11 05:29:16 +00:00
|
|
|
allowString: true,
|
2018-06-21 08:23:59 +00:00
|
|
|
cli: true,
|
2017-07-03 09:34:46 +00:00
|
|
|
env: false,
|
2018-10-05 08:44:29 +00:00
|
|
|
default: 'at any time',
|
2017-06-30 12:04:46 +00:00
|
|
|
},
|
2017-10-13 04:42:17 +00:00
|
|
|
{
|
|
|
|
name: 'updateNotScheduled',
|
|
|
|
description:
|
|
|
|
'Whether to update (but not create) branches when not scheduled',
|
|
|
|
stage: 'branch',
|
|
|
|
type: 'boolean',
|
|
|
|
},
|
2018-01-25 09:38:30 +00:00
|
|
|
// Bot administration
|
2018-09-05 12:46:36 +00:00
|
|
|
{
|
|
|
|
name: 'gitFs',
|
|
|
|
description: 'Use git for FS operations instead of API. GitHub only.',
|
2018-11-08 12:21:36 +00:00
|
|
|
type: 'string',
|
|
|
|
allowedValues: ['https', 'http', 'ssh'],
|
2018-09-05 12:46:36 +00:00
|
|
|
admin: true,
|
2018-11-08 12:21:36 +00:00
|
|
|
default: null,
|
2018-09-05 12:46:36 +00:00
|
|
|
},
|
2018-01-25 09:38:30 +00:00
|
|
|
{
|
2018-11-16 11:16:37 +00:00
|
|
|
name: 'trustLevel',
|
2018-01-25 09:38:30 +00:00
|
|
|
description:
|
2018-11-16 11:16:37 +00:00
|
|
|
'Set this to "high" if the bot should trust the repository owners/contents',
|
2018-01-25 09:38:30 +00:00
|
|
|
stage: 'global',
|
2018-11-16 11:16:37 +00:00
|
|
|
type: 'string',
|
|
|
|
default: 'low',
|
2018-01-25 09:38:30 +00:00
|
|
|
},
|
2017-01-31 17:16:33 +00:00
|
|
|
{
|
|
|
|
name: 'platform',
|
|
|
|
description: 'Platform type of repository',
|
|
|
|
type: 'string',
|
|
|
|
default: 'github',
|
2017-12-26 04:40:14 +00:00
|
|
|
admin: true,
|
2017-01-31 17:16:33 +00:00
|
|
|
},
|
2017-02-05 08:10:29 +00:00
|
|
|
{
|
|
|
|
name: 'endpoint',
|
|
|
|
description: 'Custom endpoint to use',
|
2017-07-03 08:31:36 +00:00
|
|
|
stage: 'repository',
|
2017-02-05 08:10:29 +00:00
|
|
|
type: 'string',
|
2017-12-26 04:40:14 +00:00
|
|
|
admin: true,
|
2018-02-03 06:23:24 +00:00
|
|
|
default: null,
|
2017-02-05 08:10:29 +00:00
|
|
|
},
|
2017-01-20 13:03:18 +00:00
|
|
|
{
|
|
|
|
name: 'token',
|
2017-01-31 17:16:33 +00:00
|
|
|
description: 'Repository Auth Token',
|
2017-07-03 08:31:36 +00:00
|
|
|
stage: 'repository',
|
2017-01-20 13:03:18 +00:00
|
|
|
type: 'string',
|
2017-12-26 04:40:14 +00:00
|
|
|
admin: true,
|
2017-01-20 13:03:18 +00:00
|
|
|
},
|
2018-08-29 05:30:03 +00:00
|
|
|
{
|
|
|
|
name: 'username',
|
|
|
|
description: 'Username for authentication. Currently Bitbucket only',
|
|
|
|
stage: 'repository',
|
|
|
|
type: 'string',
|
|
|
|
admin: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'password',
|
|
|
|
description:
|
|
|
|
'Password for authentication. Currently Bitbucket only (AppPassword).',
|
|
|
|
stage: 'repository',
|
|
|
|
type: 'string',
|
|
|
|
admin: true,
|
|
|
|
},
|
2017-08-29 07:25:44 +00:00
|
|
|
{
|
|
|
|
name: 'npmrc',
|
|
|
|
description: 'String copy of npmrc file. Use \\n instead of line breaks',
|
|
|
|
stage: 'branch',
|
|
|
|
type: 'string',
|
|
|
|
},
|
2017-12-26 04:40:14 +00:00
|
|
|
{
|
|
|
|
name: 'npmToken',
|
2018-10-15 13:47:48 +00:00
|
|
|
description: 'npm token used for authenticating with the default registry',
|
2017-12-26 04:40:14 +00:00
|
|
|
stage: 'branch',
|
|
|
|
type: 'string',
|
|
|
|
},
|
2017-08-29 07:25:44 +00:00
|
|
|
{
|
|
|
|
name: 'yarnrc',
|
|
|
|
description: 'String copy of yarnrc file. Use \\n instead of line breaks',
|
|
|
|
stage: 'branch',
|
|
|
|
type: 'string',
|
|
|
|
},
|
2018-03-22 09:41:26 +00:00
|
|
|
{
|
|
|
|
name: 'updateLockFiles',
|
|
|
|
description: 'Set to false to disable lock file updating',
|
|
|
|
type: 'boolean',
|
|
|
|
},
|
2018-08-15 15:13:07 +00:00
|
|
|
{
|
|
|
|
name: 'skipInstalls',
|
|
|
|
description:
|
|
|
|
'Skip installing modules/dependencies if lock file updating is possible alone',
|
|
|
|
type: 'boolean',
|
2018-10-12 18:00:49 +00:00
|
|
|
default: null,
|
2018-08-15 15:13:07 +00:00
|
|
|
admin: true,
|
|
|
|
},
|
2017-09-29 06:22:22 +00:00
|
|
|
{
|
|
|
|
name: 'ignoreNpmrcFile',
|
|
|
|
description: 'Whether to ignore any .npmrc file found in repository',
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'package',
|
2017-09-29 06:22:22 +00:00
|
|
|
type: 'boolean',
|
|
|
|
default: false,
|
|
|
|
},
|
2017-08-29 07:25:44 +00:00
|
|
|
{
|
|
|
|
name: 'autodiscover',
|
|
|
|
description: 'Autodiscover all repositories',
|
2017-12-26 04:40:14 +00:00
|
|
|
stage: 'global',
|
2017-08-29 07:25:44 +00:00
|
|
|
type: 'boolean',
|
|
|
|
default: false,
|
|
|
|
},
|
2017-01-20 13:03:18 +00:00
|
|
|
{
|
|
|
|
name: 'repositories',
|
2017-03-13 09:07:57 +00:00
|
|
|
description: 'List of Repositories',
|
2017-07-03 08:31:36 +00:00
|
|
|
stage: 'global',
|
2017-01-20 13:03:18 +00:00
|
|
|
type: 'list',
|
|
|
|
cli: false,
|
|
|
|
},
|
2017-07-06 08:26:18 +00:00
|
|
|
{
|
2018-01-12 06:47:18 +00:00
|
|
|
name: 'baseBranches',
|
2017-07-06 08:26:18 +00:00
|
|
|
description:
|
2019-01-06 13:47:42 +00:00
|
|
|
'An array of one or more custom base branches to be processed. If left empty, the default branch will be chosen',
|
2018-01-12 06:47:18 +00:00
|
|
|
type: 'list',
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'package',
|
2017-07-06 08:26:18 +00:00
|
|
|
cli: false,
|
|
|
|
env: false,
|
|
|
|
},
|
2017-12-09 16:09:31 +00:00
|
|
|
{
|
|
|
|
name: 'gitAuthor',
|
|
|
|
description: 'Author to use for git commits. RFC5322',
|
|
|
|
type: 'string',
|
2018-06-25 13:52:24 +00:00
|
|
|
admin: true,
|
2017-12-09 16:09:31 +00:00
|
|
|
},
|
2017-12-09 16:56:23 +00:00
|
|
|
{
|
|
|
|
name: 'gitPrivateKey',
|
|
|
|
description: 'PGP key to use for signing git commits',
|
|
|
|
type: 'string',
|
|
|
|
cli: false,
|
2017-12-26 04:40:14 +00:00
|
|
|
admin: true,
|
2017-12-09 16:56:23 +00:00
|
|
|
},
|
2018-03-30 15:00:51 +00:00
|
|
|
{
|
|
|
|
name: 'enabledManagers',
|
|
|
|
description:
|
|
|
|
'A list of package managers to enable. If defined, then all managers not on the list are disabled.',
|
|
|
|
type: 'list',
|
|
|
|
stage: 'repository',
|
|
|
|
},
|
2018-04-30 14:13:32 +00:00
|
|
|
{
|
|
|
|
name: 'includePaths',
|
|
|
|
description: 'Include package files only within these defined paths',
|
|
|
|
type: 'list',
|
|
|
|
stage: 'repository',
|
|
|
|
default: [],
|
|
|
|
},
|
2017-07-08 05:00:58 +00:00
|
|
|
{
|
2017-08-26 19:28:29 +00:00
|
|
|
name: 'ignorePaths',
|
2017-11-01 09:31:56 +00:00
|
|
|
description:
|
|
|
|
'Skip any package.json whose path matches one of these. Can be string or glob pattern',
|
2017-08-26 19:28:29 +00:00
|
|
|
type: 'list',
|
2017-07-08 05:00:58 +00:00
|
|
|
stage: 'repository',
|
2017-12-14 05:35:12 +00:00
|
|
|
default: ['**/node_modules/**', '**/bower_components/**'],
|
2017-07-08 05:00:58 +00:00
|
|
|
},
|
2018-02-19 13:21:45 +00:00
|
|
|
{
|
|
|
|
name: 'engines',
|
|
|
|
description: 'Configuration specifically for `package.json`>`engines`',
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'package',
|
2018-02-19 13:21:45 +00:00
|
|
|
type: 'json',
|
2018-04-17 12:06:55 +00:00
|
|
|
default: {},
|
2018-02-19 13:21:45 +00:00
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
},
|
2018-07-05 09:33:50 +00:00
|
|
|
{
|
|
|
|
name: 'registryUrls',
|
|
|
|
description:
|
|
|
|
'List of URLs to try for dependency lookup. Package manager-specific',
|
|
|
|
type: 'list',
|
|
|
|
default: null,
|
2018-10-16 02:52:57 +00:00
|
|
|
stage: 'branch',
|
2018-07-05 09:33:50 +00:00
|
|
|
cli: false,
|
|
|
|
env: false,
|
|
|
|
},
|
2018-12-13 04:29:11 +00:00
|
|
|
{
|
|
|
|
name: 'versionScheme',
|
|
|
|
description: 'Version scheme to use for filtering and comparisons',
|
|
|
|
type: 'string',
|
|
|
|
allowedValues: [
|
2019-01-03 06:27:08 +00:00
|
|
|
'cargo',
|
2019-01-03 06:32:44 +00:00
|
|
|
'composer',
|
2018-12-13 04:29:11 +00:00
|
|
|
'docker',
|
2019-01-03 06:41:59 +00:00
|
|
|
'hashicorp',
|
2018-12-13 04:29:11 +00:00
|
|
|
'loose',
|
2019-01-07 13:32:46 +00:00
|
|
|
'maven',
|
2019-01-04 11:41:22 +00:00
|
|
|
'node',
|
2019-01-07 04:49:47 +00:00
|
|
|
'npm',
|
2018-12-13 04:29:11 +00:00
|
|
|
'pep440',
|
2019-01-03 06:18:20 +00:00
|
|
|
'ruby',
|
2018-12-13 04:29:11 +00:00
|
|
|
'semver',
|
|
|
|
],
|
|
|
|
default: 'semver',
|
|
|
|
cli: false,
|
|
|
|
env: false,
|
|
|
|
},
|
2017-06-27 11:44:03 +00:00
|
|
|
// depType
|
|
|
|
{
|
|
|
|
name: 'ignoreDeps',
|
|
|
|
description: 'Dependencies to ignore',
|
|
|
|
type: 'list',
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'package',
|
2018-05-03 12:14:05 +00:00
|
|
|
mergeable: true,
|
2017-06-27 11:44:03 +00:00
|
|
|
},
|
|
|
|
{
|
2017-08-03 05:55:59 +00:00
|
|
|
name: 'packageRules',
|
|
|
|
description: 'Rules for matching package names',
|
2017-06-27 11:44:03 +00:00
|
|
|
type: 'list',
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'package',
|
2018-12-11 11:55:12 +00:00
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
env: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'languages',
|
|
|
|
description:
|
|
|
|
'List of languages to match (e.g. ["pipenv"]). Valid only within `packageRules` object',
|
|
|
|
type: 'list',
|
|
|
|
allowString: true,
|
|
|
|
parent: 'packageRules',
|
|
|
|
stage: 'package',
|
2017-08-06 04:41:45 +00:00
|
|
|
mergeable: true,
|
2017-06-27 11:44:03 +00:00
|
|
|
cli: false,
|
|
|
|
env: false,
|
|
|
|
},
|
2018-12-11 11:37:13 +00:00
|
|
|
{
|
|
|
|
name: 'managers',
|
|
|
|
description:
|
|
|
|
'List of package managers to match (e.g. ["pipenv"]). Valid only within `packageRules` object',
|
|
|
|
type: 'list',
|
|
|
|
allowString: true,
|
|
|
|
parent: 'packageRules',
|
|
|
|
stage: 'package',
|
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
env: false,
|
|
|
|
},
|
2018-04-09 14:10:34 +00:00
|
|
|
{
|
|
|
|
name: 'depTypeList',
|
|
|
|
description:
|
|
|
|
'List of depTypes to match (e.g. [`peerDependencies`]). Valid only within `packageRules` object',
|
|
|
|
type: 'list',
|
|
|
|
allowString: true,
|
2018-05-06 06:29:38 +00:00
|
|
|
parent: 'packageRules',
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'package',
|
2018-04-09 14:10:34 +00:00
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
env: false,
|
|
|
|
},
|
2017-08-02 05:52:28 +00:00
|
|
|
{
|
2017-08-03 05:55:59 +00:00
|
|
|
name: 'packageNames',
|
|
|
|
description:
|
|
|
|
'Package names to match. Valid only within `packageRules` object',
|
|
|
|
type: 'list',
|
2017-08-11 05:29:16 +00:00
|
|
|
allowString: true,
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'package',
|
2018-05-06 06:29:38 +00:00
|
|
|
parent: 'packageRules',
|
2017-08-18 04:10:19 +00:00
|
|
|
mergeable: true,
|
2017-08-02 05:52:28 +00:00
|
|
|
cli: false,
|
|
|
|
env: false,
|
|
|
|
},
|
|
|
|
{
|
2017-08-03 05:55:59 +00:00
|
|
|
name: 'excludePackageNames',
|
2017-08-02 05:52:28 +00:00
|
|
|
description:
|
2017-08-03 05:55:59 +00:00
|
|
|
'Package names to exclude. Valid only within `packageRules` object',
|
|
|
|
type: 'list',
|
2017-08-11 05:29:16 +00:00
|
|
|
allowString: true,
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'package',
|
2018-05-06 06:29:38 +00:00
|
|
|
parent: 'packageRules',
|
2017-08-18 04:10:19 +00:00
|
|
|
mergeable: true,
|
2017-08-03 05:55:59 +00:00
|
|
|
cli: false,
|
|
|
|
env: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'packagePatterns',
|
|
|
|
description:
|
|
|
|
'Package name patterns to match. Valid only within `packageRules` object.',
|
|
|
|
type: 'list',
|
2017-08-11 05:29:16 +00:00
|
|
|
allowString: true,
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'package',
|
2018-05-06 06:29:38 +00:00
|
|
|
parent: 'packageRules',
|
2017-08-18 04:10:19 +00:00
|
|
|
mergeable: true,
|
2017-08-03 05:55:59 +00:00
|
|
|
cli: false,
|
|
|
|
env: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'excludePackagePatterns',
|
|
|
|
description:
|
|
|
|
'Package name patterns to exclude. Valid only within `packageRules` object.',
|
|
|
|
type: 'list',
|
2017-08-11 05:29:16 +00:00
|
|
|
allowString: true,
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'package',
|
2018-05-06 06:29:38 +00:00
|
|
|
parent: 'packageRules',
|
2017-08-18 04:10:19 +00:00
|
|
|
mergeable: true,
|
2017-08-02 05:52:28 +00:00
|
|
|
cli: false,
|
|
|
|
env: false,
|
|
|
|
},
|
2018-04-27 03:45:22 +00:00
|
|
|
{
|
|
|
|
name: 'matchCurrentVersion',
|
|
|
|
description:
|
|
|
|
'A version or version range to match against the current version of a package. Valid only within `packageRules` object',
|
|
|
|
type: 'string',
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'package',
|
2018-05-06 06:29:38 +00:00
|
|
|
parent: 'packageRules',
|
2018-04-27 03:45:22 +00:00
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
env: false,
|
|
|
|
},
|
2018-12-11 11:03:09 +00:00
|
|
|
{
|
|
|
|
name: 'sourceUrlPrefixes',
|
|
|
|
description:
|
|
|
|
'A list of source URL prefixes to match against, commonly used for grouping of monorepos or packages from the same organization.',
|
|
|
|
type: 'list',
|
|
|
|
allowString: true,
|
|
|
|
stage: 'package',
|
|
|
|
parent: 'packageRules',
|
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
env: false,
|
|
|
|
},
|
2018-07-04 07:30:29 +00:00
|
|
|
{
|
|
|
|
name: 'updateTypes',
|
|
|
|
description:
|
|
|
|
'Update types to match against (major, minor, pin, etc). Valid only within `packageRules` object.',
|
|
|
|
type: 'list',
|
|
|
|
allowString: true,
|
|
|
|
stage: 'package',
|
|
|
|
parent: 'packageRules',
|
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
env: false,
|
|
|
|
},
|
2018-08-24 15:08:32 +00:00
|
|
|
{
|
|
|
|
name: 'paths',
|
|
|
|
description:
|
|
|
|
'List of strings or glob patterns to match against package files. Applicable inside packageRules only',
|
|
|
|
type: 'list',
|
|
|
|
stage: 'repository',
|
|
|
|
parent: 'packageRules',
|
|
|
|
cli: false,
|
|
|
|
env: false,
|
|
|
|
},
|
2017-01-20 13:03:18 +00:00
|
|
|
// Version behaviour
|
2018-03-02 22:10:42 +00:00
|
|
|
{
|
|
|
|
name: 'allowedVersions',
|
|
|
|
description: 'A semver range defining allowed versions for dependencies',
|
|
|
|
type: 'string',
|
2018-05-06 06:29:38 +00:00
|
|
|
parent: 'packageRules',
|
2018-03-02 22:10:42 +00:00
|
|
|
stage: 'package',
|
|
|
|
cli: false,
|
|
|
|
env: false,
|
|
|
|
},
|
2017-10-24 03:33:03 +00:00
|
|
|
{
|
|
|
|
name: 'pinDigests',
|
|
|
|
description: 'Whether to add digests to Dockerfile source images',
|
|
|
|
stage: 'package',
|
|
|
|
type: 'boolean',
|
2018-06-26 11:31:51 +00:00
|
|
|
default: false,
|
2017-10-24 03:33:03 +00:00
|
|
|
},
|
2017-04-15 10:44:50 +00:00
|
|
|
{
|
2018-05-17 05:36:13 +00:00
|
|
|
name: 'separateMajorMinor',
|
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-11-10 03:57:07 +00:00
|
|
|
{
|
2018-05-17 05:33:59 +00:00
|
|
|
name: 'separateMultipleMajor',
|
2017-11-10 03:57:07 +00:00
|
|
|
description:
|
|
|
|
'If set to true, PRs will be raised separately for each available major upgrade version',
|
|
|
|
stage: 'package',
|
|
|
|
type: 'boolean',
|
|
|
|
default: false,
|
|
|
|
},
|
2017-08-01 15:10:53 +00:00
|
|
|
{
|
2018-05-17 05:40:29 +00:00
|
|
|
name: 'separateMinorPatch',
|
2017-08-01 15:10:53 +00:00
|
|
|
description:
|
|
|
|
'If set to true, it will separate minor and patch updates into separate branches',
|
|
|
|
type: 'boolean',
|
|
|
|
default: false,
|
|
|
|
},
|
2017-01-20 13:03:18 +00:00
|
|
|
{
|
|
|
|
name: 'ignoreUnstable',
|
|
|
|
description: 'Ignore versions with unstable semver',
|
2017-07-03 08:31:36 +00:00
|
|
|
stage: 'package',
|
2017-01-20 13:03:18 +00:00
|
|
|
type: 'boolean',
|
|
|
|
},
|
2018-07-05 13:10:50 +00:00
|
|
|
{
|
|
|
|
name: 'ignoreDeprecated',
|
|
|
|
description:
|
|
|
|
'Ignore deprecated versions unless the current version is deprecated',
|
|
|
|
stage: 'package',
|
|
|
|
type: 'boolean',
|
|
|
|
default: true,
|
|
|
|
},
|
2017-11-08 20:57:34 +00:00
|
|
|
{
|
|
|
|
name: 'unstablePattern',
|
|
|
|
description: 'Regex for identifying unstable versions (docker only)',
|
|
|
|
stage: 'package',
|
|
|
|
type: 'string',
|
|
|
|
cli: false,
|
|
|
|
env: false,
|
|
|
|
},
|
2018-09-19 07:59:33 +00:00
|
|
|
{
|
|
|
|
name: 'followTag',
|
|
|
|
description: 'If defined, packages will follow this release tag exactly.',
|
|
|
|
stage: 'package',
|
|
|
|
type: 'string',
|
|
|
|
cli: false,
|
|
|
|
env: false,
|
|
|
|
},
|
2017-01-20 13:03:18 +00:00
|
|
|
{
|
|
|
|
name: 'respectLatest',
|
|
|
|
description: 'Ignore versions newer than npm "latest" version',
|
2017-07-03 08:31:36 +00:00
|
|
|
stage: 'package',
|
2017-01-20 13:03:18 +00:00
|
|
|
type: 'boolean',
|
|
|
|
},
|
2018-03-07 06:41:10 +00:00
|
|
|
{
|
feat: rangeStrategy (#1954)
This PR replaces the existing `pinVersions`, `upgradeInRange` and `versionStrategy` settings with a single one: `rangeStrategy`.
Previously:
- `pinVersions` could be `true` or `false`, but defaulted to `null`, which meant that Renovate would decide. `true` meant that Renovate would replace existing ranges like `^1.0.0` with an exact/pinned version such as `1.2.0`.
- `upgradeInRange` could be true or false, default to false. If `true`, it would mean Renovate would replace an existing range like `^1.0.0` with something like `^1.2.0`
- `versionStrategy` could be `replace` or `widen` and was mainly used for `peerDependencies` to widen existing ranges, e.g. from `^1.0.0` to `^1.0.0 || ^2.0.0`
It was possible to set conflicting settings, e.g. configuring `pinVersions=true` and `upgradeInRange=true`.
Now, we combine them into a single setting: `rangeStrategy`:
- `auto` = Renovate decides (this will be done on a manager-by-manager basis)
- `pin` = convert ranges to exact versions
- `bump` = same as `upgradeInRange` previously, e.g. bump the range even if the new version satisifies the existing range
- `replace` = Same as pinVersions === false && upgradeInRange === false, i.e. only replace the range if the new version falls outside it
- `widen` = Same as previous versionStrategy==='widen'
2018-05-17 05:16:13 +00:00
|
|
|
name: 'rangeStrategy',
|
|
|
|
description: 'Policy for how to modify/update existing ranges.',
|
2018-01-24 14:26:37 +00:00
|
|
|
type: 'string',
|
2018-05-23 09:17:20 +00:00
|
|
|
default: 'replace',
|
2019-01-24 05:23:08 +00:00
|
|
|
allowedValues: [
|
|
|
|
'auto',
|
|
|
|
'pin',
|
|
|
|
'bump',
|
|
|
|
'replace',
|
|
|
|
'widen',
|
|
|
|
'update-lockfile',
|
|
|
|
],
|
2018-01-24 14:26:37 +00:00
|
|
|
cli: false,
|
|
|
|
env: false,
|
|
|
|
},
|
2017-08-04 06:32:22 +00:00
|
|
|
{
|
|
|
|
name: 'branchPrefix',
|
|
|
|
description: 'Prefix to use for all branch names',
|
|
|
|
stage: 'branch',
|
|
|
|
type: 'string',
|
2019-01-06 13:47:42 +00:00
|
|
|
default: `${appSlug}/`,
|
2017-08-04 06:32:22 +00:00
|
|
|
},
|
2018-01-20 08:27:05 +00:00
|
|
|
{
|
|
|
|
name: 'bumpVersion',
|
|
|
|
description: 'Bump the version in the package.json being updated',
|
|
|
|
type: 'string',
|
|
|
|
},
|
2017-08-01 15:10:53 +00:00
|
|
|
// Major/Minor/Patch
|
|
|
|
{
|
|
|
|
name: 'major',
|
|
|
|
description: 'Configuration to apply when an update type is major',
|
|
|
|
stage: 'package',
|
|
|
|
type: 'json',
|
|
|
|
default: {},
|
|
|
|
cli: false,
|
|
|
|
mergeable: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'minor',
|
|
|
|
description: 'Configuration to apply when an update type is minor',
|
|
|
|
stage: 'package',
|
|
|
|
type: 'json',
|
|
|
|
default: {},
|
|
|
|
cli: false,
|
|
|
|
mergeable: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'patch',
|
|
|
|
description:
|
2018-05-17 05:40:29 +00:00
|
|
|
'Configuration to apply when an update type is patch. Only applies if `separateMinorPatch` is set to true',
|
2017-08-01 15:10:53 +00:00
|
|
|
stage: 'package',
|
|
|
|
type: 'json',
|
2018-07-05 16:21:43 +00:00
|
|
|
default: {},
|
2017-08-01 15:10:53 +00:00
|
|
|
cli: false,
|
|
|
|
mergeable: true,
|
|
|
|
},
|
2017-09-13 18:52:07 +00:00
|
|
|
{
|
|
|
|
name: 'pin',
|
|
|
|
description: 'Configuration to apply when an update type is pin.',
|
|
|
|
stage: 'package',
|
|
|
|
type: 'json',
|
|
|
|
default: {
|
2018-07-05 20:08:19 +00:00
|
|
|
unpublishSafe: false,
|
|
|
|
recreateClosed: true,
|
|
|
|
rebaseStalePrs: true,
|
|
|
|
groupName: 'Pin Dependencies',
|
|
|
|
commitMessageAction: 'Pin',
|
|
|
|
group: {
|
|
|
|
commitMessageTopic: 'dependencies',
|
2018-10-14 19:56:42 +00:00
|
|
|
commitMessageExtra: '',
|
2017-09-13 18:52:07 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
cli: false,
|
|
|
|
mergeable: true,
|
|
|
|
},
|
2017-10-25 07:57:57 +00:00
|
|
|
{
|
|
|
|
name: 'digest',
|
|
|
|
description:
|
2018-10-08 10:08:51 +00:00
|
|
|
'Configuration to apply when updating a digest (no change in tag/version)',
|
2017-10-25 07:57:57 +00:00
|
|
|
stage: 'package',
|
|
|
|
type: 'json',
|
2018-09-17 09:18:18 +00:00
|
|
|
default: {
|
|
|
|
branchTopic: '{{{depNameSanitized}}}-digest',
|
|
|
|
commitMessageExtra: 'to {{newDigestShort}}',
|
|
|
|
commitMessageTopic: '{{{depName}}} commit hash',
|
2018-10-08 10:08:51 +00:00
|
|
|
prBodyDefinitions: {
|
|
|
|
Change: '`{{{currentValue}}}` -> `{{{newDigestShort}}}`',
|
|
|
|
},
|
2018-09-17 09:18:18 +00:00
|
|
|
},
|
2017-10-25 07:57:57 +00:00
|
|
|
cli: false,
|
|
|
|
mergeable: true,
|
|
|
|
},
|
2017-06-29 17:50:26 +00:00
|
|
|
// Semantic commit / Semantic release
|
|
|
|
{
|
2017-06-30 04:01:50 +00:00
|
|
|
name: 'semanticCommits',
|
2017-06-29 17:50:26 +00:00
|
|
|
description: 'Enable semantic commit prefixes for commits and PR titles',
|
|
|
|
type: 'boolean',
|
2017-08-10 20:35:05 +00:00
|
|
|
default: null,
|
2017-06-29 17:50:26 +00:00
|
|
|
},
|
|
|
|
{
|
2017-11-24 06:14:58 +00:00
|
|
|
name: 'semanticCommitType',
|
|
|
|
description: 'Commit type to use if semantic commits is enabled',
|
2017-06-29 17:50:26 +00:00
|
|
|
type: 'string',
|
2017-11-24 06:14:58 +00:00
|
|
|
default: 'chore',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'semanticCommitScope',
|
2017-12-26 04:40:14 +00:00
|
|
|
description: 'Commit scope to use if semantic commits are enabled',
|
2017-11-24 06:14:58 +00:00
|
|
|
type: 'string',
|
|
|
|
default: 'deps',
|
2017-06-29 17:50:26 +00:00
|
|
|
},
|
2017-01-20 13:03:18 +00:00
|
|
|
// PR Behaviour
|
2018-07-22 04:49:04 +00:00
|
|
|
{
|
|
|
|
name: 'rollbackPrs',
|
|
|
|
description:
|
|
|
|
'Create PRs to roll back versions if the current version is not found in the registry',
|
|
|
|
type: 'boolean',
|
2019-01-25 05:36:27 +00:00
|
|
|
default: false,
|
2018-07-22 04:49:04 +00:00
|
|
|
},
|
2017-01-20 13:03:18 +00:00
|
|
|
{
|
|
|
|
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',
|
2018-03-09 05:58:40 +00:00
|
|
|
default: null,
|
2017-02-06 06:56:33 +00:00
|
|
|
},
|
2018-09-14 10:51:33 +00:00
|
|
|
{
|
|
|
|
name: 'rebaseLabel',
|
|
|
|
description:
|
2019-01-06 13:47:42 +00:00
|
|
|
'Label to use to request the bot to rebase a PR manually (GitHub only)',
|
2018-09-14 10:51:33 +00:00
|
|
|
type: 'string',
|
|
|
|
default: 'rebase',
|
|
|
|
},
|
2018-01-25 12:36:21 +00:00
|
|
|
{
|
|
|
|
name: 'statusCheckVerify',
|
2019-01-06 13:47:42 +00:00
|
|
|
description: 'Set a verify status check for all PRs',
|
2018-01-25 12:36:21 +00:00
|
|
|
type: 'boolean',
|
|
|
|
default: false,
|
|
|
|
},
|
2017-08-06 13:38:10 +00:00
|
|
|
{
|
|
|
|
name: 'unpublishSafe',
|
|
|
|
description: 'Set a status check for unpublish-safe upgrades',
|
|
|
|
type: 'boolean',
|
2017-08-14 04:27:00 +00:00
|
|
|
default: false,
|
2017-08-06 13:38:10 +00:00
|
|
|
},
|
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-08-28 09:37:09 +00:00
|
|
|
{
|
|
|
|
name: 'prNotPendingHours',
|
|
|
|
description: 'Timeout in hours for when prCreation=not-pending',
|
|
|
|
type: 'integer',
|
2017-12-20 05:47:20 +00:00
|
|
|
// Must be at least 24 hours to give time for the unpublishSafe check to "complete".
|
2018-02-12 06:55:08 +00:00
|
|
|
default: 25,
|
2017-08-28 09:37:09 +00:00
|
|
|
},
|
2018-01-11 10:49:01 +00:00
|
|
|
{
|
|
|
|
name: 'prHourlyLimit',
|
|
|
|
description:
|
|
|
|
'Rate limit PRs to maximum x created per hour. 0 (default) means no limit.',
|
|
|
|
type: 'integer',
|
|
|
|
default: 0, // no limit
|
|
|
|
},
|
2018-01-30 10:38:55 +00:00
|
|
|
{
|
|
|
|
name: 'prConcurrentLimit',
|
|
|
|
description:
|
|
|
|
'Limit to a maximum of x concurrent branches/PRs. 0 (default) means no limit.',
|
|
|
|
type: 'integer',
|
|
|
|
default: 0, // no limit
|
|
|
|
},
|
2017-04-20 11:01:23 +00:00
|
|
|
// Automatic merging
|
|
|
|
{
|
|
|
|
name: 'automerge',
|
2017-06-02 20:40:00 +00:00
|
|
|
description:
|
2017-08-21 11:41:48 +00:00
|
|
|
'Whether to automerge branches/PRs automatically, without human intervention',
|
|
|
|
type: 'boolean',
|
|
|
|
default: false,
|
2017-04-20 11:01:23 +00:00
|
|
|
},
|
2017-06-08 04:18:21 +00:00
|
|
|
{
|
|
|
|
name: 'automergeType',
|
|
|
|
description:
|
2018-06-26 11:51:50 +00:00
|
|
|
'How to automerge - "branch", "pr", or "pr-comment". Branch support is GitHub-only',
|
2017-06-08 04:18:21 +00:00
|
|
|
type: 'string',
|
|
|
|
default: 'pr',
|
|
|
|
},
|
2018-05-04 04:55:01 +00:00
|
|
|
{
|
|
|
|
name: 'automergeComment',
|
|
|
|
description:
|
|
|
|
'PR comment to add to trigger automerge. Used only if automergeType=pr-comment',
|
|
|
|
type: 'string',
|
|
|
|
default: 'automergeComment',
|
|
|
|
},
|
2017-07-05 05:02:25 +00:00
|
|
|
{
|
|
|
|
name: 'requiredStatusChecks',
|
|
|
|
description:
|
|
|
|
'List of status checks that must pass before automerging. Set to null to enable automerging without tests.',
|
|
|
|
type: 'list',
|
|
|
|
cli: false,
|
|
|
|
env: false,
|
|
|
|
},
|
2018-07-29 04:35:25 +00:00
|
|
|
{
|
|
|
|
name: 'vulnerabilityAlerts',
|
|
|
|
description:
|
2019-01-06 13:47:42 +00:00
|
|
|
'Config to apply when a PR is necessary due to vulnerability of existing package version.',
|
2018-07-29 04:35:25 +00:00
|
|
|
type: 'object',
|
|
|
|
default: {
|
2018-07-29 06:43:53 +00:00
|
|
|
enabled: true,
|
2018-07-29 04:35:25 +00:00
|
|
|
groupName: null,
|
|
|
|
schedule: [],
|
2018-10-04 08:07:59 +00:00
|
|
|
masterIssueApproval: false,
|
2018-07-29 04:35:25 +00:00
|
|
|
commitMessageSuffix: '[SECURITY]',
|
|
|
|
},
|
|
|
|
cli: false,
|
|
|
|
env: false,
|
|
|
|
},
|
2017-07-01 04:48:38 +00:00
|
|
|
// Default templates
|
2017-01-20 13:03:18 +00:00
|
|
|
{
|
|
|
|
name: 'branchName',
|
|
|
|
description: 'Branch name template',
|
|
|
|
type: 'string',
|
2018-04-17 06:39:26 +00:00
|
|
|
default: '{{{branchPrefix}}}{{{managerBranchPrefix}}}{{{branchTopic}}}',
|
|
|
|
cli: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'managerBranchPrefix',
|
|
|
|
description: 'Branch manager prefix',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
cli: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'branchTopic',
|
|
|
|
description: 'Branch topic',
|
|
|
|
type: 'string',
|
2018-07-05 16:21:43 +00:00
|
|
|
default:
|
2019-01-24 05:23:08 +00:00
|
|
|
'{{{depNameSanitized}}}-{{{newMajor}}}{{#if isPatch}}.{{{newMinor}}}{{/if}}.x{{#if isLockfileUpdate}}-lockfile{{/if}}',
|
2017-01-20 13:03:18 +00:00
|
|
|
cli: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'commitMessage',
|
2018-04-17 06:39:26 +00:00
|
|
|
description: 'Message to use for commit messages and pull request titles',
|
2017-01-20 13:03:18 +00:00
|
|
|
type: 'string',
|
2018-04-17 06:39:26 +00:00
|
|
|
default:
|
2018-04-17 10:49:59 +00:00
|
|
|
'{{{commitMessagePrefix}}} {{{commitMessageAction}}} {{{commitMessageTopic}}} {{{commitMessageExtra}}} {{{commitMessageSuffix}}}',
|
2017-01-20 13:03:18 +00:00
|
|
|
cli: false,
|
|
|
|
},
|
2017-12-25 19:37:14 +00:00
|
|
|
{
|
|
|
|
name: 'commitBody',
|
|
|
|
description:
|
|
|
|
'Commit message body template. Will be appended to commit message, separated by two line returns.',
|
|
|
|
type: 'string',
|
|
|
|
cli: false,
|
|
|
|
},
|
2018-04-17 06:39:26 +00:00
|
|
|
{
|
|
|
|
name: 'commitMessagePrefix',
|
|
|
|
description:
|
|
|
|
'Prefix to add to start of commit messages and PR titles. Uses a semantic prefix if semanticCommits enabled',
|
|
|
|
type: 'string',
|
|
|
|
cli: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'commitMessageAction',
|
|
|
|
description: 'Action verb to use in commit messages and PR titles',
|
|
|
|
type: 'string',
|
|
|
|
default: 'Update',
|
|
|
|
cli: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'commitMessageTopic',
|
|
|
|
description: 'The upgrade topic/noun used in commit messages and PR titles',
|
|
|
|
type: 'string',
|
|
|
|
default: 'dependency {{depName}}',
|
|
|
|
cli: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'commitMessageExtra',
|
|
|
|
description:
|
|
|
|
'Extra description used after the commit message topic - typically the version',
|
|
|
|
type: 'string',
|
|
|
|
default:
|
2018-07-05 19:11:58 +00:00
|
|
|
'to {{#if isMajor}}v{{{newMajor}}}{{else}}{{#if isSingleVersion}}v{{{toVersion}}}{{else}}{{{newValue}}}{{/if}}{{/if}}',
|
2018-04-17 06:39:26 +00:00
|
|
|
cli: false,
|
|
|
|
},
|
2018-07-28 18:43:54 +00:00
|
|
|
{
|
|
|
|
name: 'commitMessageSuffix',
|
|
|
|
description: 'Suffix to add to end of commit messages and PR titles.',
|
|
|
|
type: 'string',
|
|
|
|
cli: false,
|
|
|
|
},
|
2017-01-20 13:03:18 +00:00
|
|
|
{
|
|
|
|
name: 'prTitle',
|
2018-04-17 06:39:26 +00:00
|
|
|
description:
|
|
|
|
'Pull Request title template (deprecated). Now uses commitMessage.',
|
2017-01-20 13:03:18 +00:00
|
|
|
type: 'string',
|
2018-04-17 06:39:26 +00:00
|
|
|
default: null,
|
2017-01-20 13:03:18 +00:00
|
|
|
cli: false,
|
|
|
|
},
|
2018-03-12 12:35:15 +00:00
|
|
|
{
|
|
|
|
name: 'prFooter',
|
|
|
|
description: 'Pull Request footer template',
|
|
|
|
type: 'string',
|
2019-01-06 13:47:42 +00:00
|
|
|
default: `This PR has been generated by [${appName} Bot](${
|
|
|
|
urls.homepage
|
|
|
|
}).`,
|
2018-03-12 12:35:15 +00:00
|
|
|
stage: 'global',
|
|
|
|
},
|
2017-04-13 20:39:46 +00:00
|
|
|
{
|
2017-07-01 04:44:41 +00:00
|
|
|
name: 'lockFileMaintenance',
|
|
|
|
description: 'Configuration for lock file maintenance',
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'branch',
|
2017-07-01 04:44:41 +00:00
|
|
|
type: 'json',
|
|
|
|
default: {
|
2017-11-01 08:45:30 +00:00
|
|
|
enabled: false,
|
2017-07-02 04:21:24 +00:00
|
|
|
recreateClosed: true,
|
2018-03-20 05:48:27 +00:00
|
|
|
rebaseStalePrs: true,
|
2018-04-17 06:39:26 +00:00
|
|
|
branchTopic: 'lock-file-maintenance',
|
2018-04-17 10:22:11 +00:00
|
|
|
commitMessageAction: 'Lock file maintenance',
|
|
|
|
commitMessageTopic: null,
|
|
|
|
commitMessageExtra: null,
|
2017-08-02 14:14:09 +00:00
|
|
|
schedule: ['before 5am on monday'],
|
2017-10-05 09:07:15 +00:00
|
|
|
groupName: null,
|
2017-07-01 04:44:41 +00:00
|
|
|
},
|
2017-04-13 20:39:46 +00:00
|
|
|
cli: false,
|
2017-07-01 04:44:41 +00:00
|
|
|
mergeable: true,
|
2017-04-13 20:39:46 +00:00
|
|
|
},
|
2017-04-15 20:04:14 +00:00
|
|
|
// Dependency Groups
|
2017-06-03 13:27:11 +00:00
|
|
|
{
|
|
|
|
name: 'lazyGrouping',
|
|
|
|
description: 'Use group names only when multiple dependencies upgraded',
|
|
|
|
type: 'boolean',
|
|
|
|
default: true,
|
|
|
|
},
|
2017-04-15 20:04:14 +00:00
|
|
|
{
|
|
|
|
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,
|
2017-07-03 09:34:46 +00:00
|
|
|
cli: false,
|
|
|
|
env: false,
|
2017-04-15 20:04:14 +00:00
|
|
|
},
|
|
|
|
{
|
2017-07-01 04:48:38 +00:00
|
|
|
name: 'group',
|
|
|
|
description: 'Config if groupName is enabled',
|
|
|
|
type: 'json',
|
|
|
|
default: {
|
2018-04-17 10:49:59 +00:00
|
|
|
branchTopic: '{{{groupSlug}}}',
|
|
|
|
commitMessageTopic: '{{{groupName}}}',
|
2017-07-01 04:48:38 +00:00
|
|
|
},
|
2017-04-15 20:04:14 +00:00
|
|
|
cli: false,
|
2017-07-01 04:48:38 +00:00
|
|
|
env: false,
|
|
|
|
mergeable: true,
|
2017-04-15 20:04:14 +00:00
|
|
|
},
|
2017-01-20 13:03:18 +00:00
|
|
|
// Pull Request options
|
|
|
|
{
|
|
|
|
name: 'labels',
|
|
|
|
description: 'Labels to add to Pull Request',
|
|
|
|
type: 'list',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'assignees',
|
2017-11-22 04:12:19 +00:00
|
|
|
description:
|
2019-01-14 14:22:24 +00:00
|
|
|
'Assignees for Pull Request (username in GitHub/GitLab, email address in Azure DevOps)',
|
2017-01-20 13:03:18 +00:00
|
|
|
type: 'list',
|
|
|
|
},
|
2017-01-31 13:54:16 +00:00
|
|
|
{
|
|
|
|
name: 'reviewers',
|
2017-11-22 04:12:19 +00:00
|
|
|
description:
|
2019-01-14 14:22:24 +00:00
|
|
|
'Requested reviewers for Pull Requests (username in GitHub/GitLab, email or username in Azure DevOps)',
|
2017-01-31 13:54:16 +00:00
|
|
|
type: 'list',
|
|
|
|
},
|
2018-04-30 11:18:51 +00:00
|
|
|
{
|
|
|
|
name: 'fileMatch',
|
|
|
|
description: 'JS RegExp pattern for matching manager files',
|
|
|
|
type: 'list',
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'repository',
|
2018-04-30 11:18:51 +00:00
|
|
|
allowString: true,
|
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
env: false,
|
|
|
|
},
|
2018-07-21 19:28:38 +00:00
|
|
|
{
|
|
|
|
name: 'js',
|
|
|
|
description: 'Configuration object for javascript language',
|
|
|
|
stage: 'package',
|
|
|
|
type: 'json',
|
|
|
|
default: {},
|
|
|
|
mergeable: true,
|
|
|
|
},
|
2017-10-11 08:22:47 +00:00
|
|
|
{
|
|
|
|
name: 'npm',
|
|
|
|
description: 'Configuration object for npm package.json renovation',
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'package',
|
2017-10-11 08:22:47 +00:00
|
|
|
type: 'json',
|
2018-04-30 11:18:51 +00:00
|
|
|
default: {
|
|
|
|
fileMatch: ['(^|/)package.json$'],
|
2019-01-25 05:36:27 +00:00
|
|
|
rollbackPrs: true,
|
2019-01-07 04:49:47 +00:00
|
|
|
versionScheme: 'npm',
|
2018-04-30 11:18:51 +00:00
|
|
|
},
|
2017-10-11 08:22:47 +00:00
|
|
|
mergeable: true,
|
|
|
|
},
|
2017-09-12 07:33:41 +00:00
|
|
|
{
|
|
|
|
name: 'meteor',
|
|
|
|
description: 'Configuration object for meteor package.js renovation',
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'package',
|
2017-09-12 07:33:41 +00:00
|
|
|
type: 'json',
|
2018-04-30 11:18:51 +00:00
|
|
|
default: {
|
|
|
|
fileMatch: ['(^|/)package.js$'],
|
|
|
|
},
|
2017-09-12 07:33:41 +00:00
|
|
|
mergeable: true,
|
|
|
|
},
|
2017-12-07 08:22:10 +00:00
|
|
|
{
|
|
|
|
name: 'bazel',
|
|
|
|
description: 'Configuration object for bazel WORKSPACE renovation',
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'package',
|
2017-12-07 08:22:10 +00:00
|
|
|
type: 'json',
|
2018-04-30 11:18:51 +00:00
|
|
|
default: {
|
|
|
|
fileMatch: ['(^|/)WORKSPACE$'],
|
2018-11-19 06:18:13 +00:00
|
|
|
prBodyDefinitions: {
|
|
|
|
Change:
|
|
|
|
'{{#if currentDigestShort}}`{{{currentDigestShort}}}` -> {{#if isDigest}}`{{{newDigestShort}}}`{{else}}`{{{newVersion}}}`{{/if}}{{else}}`{{{currentValue}}}` -> `{{{newValue}}}`{{/if}}',
|
2018-11-18 21:27:20 +00:00
|
|
|
},
|
2018-04-30 11:18:51 +00:00
|
|
|
},
|
2017-12-07 08:22:10 +00:00
|
|
|
mergeable: true,
|
|
|
|
},
|
2018-04-27 17:54:44 +00:00
|
|
|
{
|
|
|
|
name: 'buildkite',
|
|
|
|
description: 'Configuration object for buildkite pipeline renovation',
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'package',
|
2018-04-27 17:54:44 +00:00
|
|
|
type: 'json',
|
|
|
|
default: {
|
2018-11-19 20:03:56 +00:00
|
|
|
fileMatch: ['buildkite\\.ya?ml', '\\.buildkite/.+\\.ya?ml$'],
|
2018-04-27 17:54:44 +00:00
|
|
|
commitMessageTopic: 'buildkite plugin {{depName}}',
|
2018-06-01 17:48:33 +00:00
|
|
|
commitMessageExtra:
|
2018-06-04 03:48:20 +00:00
|
|
|
'to {{#if isMajor}}v{{{newMajor}}}{{else}}{{{newValue}}}{{/if}}',
|
2018-04-27 17:54:44 +00:00
|
|
|
managerBranchPrefix: 'buildkite-',
|
|
|
|
},
|
|
|
|
mergeable: true,
|
|
|
|
},
|
2018-10-01 11:50:36 +00:00
|
|
|
{
|
2018-10-01 12:05:04 +00:00
|
|
|
name: 'golang',
|
2018-10-01 11:50:36 +00:00
|
|
|
description: 'Configuration object for Go language',
|
|
|
|
stage: 'package',
|
|
|
|
type: 'json',
|
|
|
|
default: {
|
|
|
|
commitMessageTopic: 'module {{depNameShort}}',
|
|
|
|
},
|
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'gomod',
|
|
|
|
description: 'Configuration object for Go modules renovation',
|
|
|
|
stage: 'package',
|
|
|
|
type: 'json',
|
|
|
|
default: {
|
|
|
|
fileMatch: ['(^|/)go.mod$'],
|
2018-10-21 12:59:52 +00:00
|
|
|
ignorePath: ['**/vendor/**'],
|
2018-10-01 11:50:36 +00:00
|
|
|
},
|
|
|
|
mergeable: true,
|
|
|
|
},
|
2018-11-20 18:16:13 +00:00
|
|
|
{
|
|
|
|
name: 'ruby',
|
2019-01-14 05:59:15 +00:00
|
|
|
releaseStatus: 'alpha',
|
2018-11-20 18:16:13 +00:00
|
|
|
description: 'Configuration object for ruby language',
|
|
|
|
stage: 'package',
|
|
|
|
type: 'json',
|
|
|
|
default: {},
|
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'bundler',
|
2019-01-14 05:59:15 +00:00
|
|
|
releaseStatus: 'alpha',
|
2018-11-20 18:16:13 +00:00
|
|
|
description: 'Configuration object for bundler Gemfiles',
|
|
|
|
stage: 'package',
|
|
|
|
type: 'json',
|
|
|
|
default: {
|
2019-01-14 05:52:13 +00:00
|
|
|
enabled: false,
|
|
|
|
fileMatch: ['(^|/)Gemfile$'],
|
|
|
|
versionScheme: 'ruby',
|
2019-01-15 08:47:23 +00:00
|
|
|
ignorePath: ['**/.cache/**'],
|
2018-11-20 18:16:13 +00:00
|
|
|
},
|
|
|
|
mergeable: true,
|
|
|
|
},
|
2018-10-06 11:39:39 +00:00
|
|
|
{
|
|
|
|
name: 'terraform',
|
|
|
|
description: 'Configuration object for Terraform module renovation',
|
|
|
|
stage: 'repository',
|
|
|
|
type: 'json',
|
|
|
|
default: {
|
|
|
|
commitMessageTopic: 'Terraform module {{depNameShort}}',
|
|
|
|
fileMatch: ['\\.tf$'],
|
2019-01-03 06:41:59 +00:00
|
|
|
versionScheme: 'hashicorp',
|
2018-10-06 11:39:39 +00:00
|
|
|
},
|
|
|
|
mergeable: true,
|
|
|
|
},
|
2018-11-09 13:22:11 +00:00
|
|
|
{
|
|
|
|
name: 'rust',
|
|
|
|
releaseStatus: 'unpublished',
|
|
|
|
description: 'Configuration option for Rust package management.',
|
|
|
|
stage: 'package',
|
|
|
|
type: 'json',
|
|
|
|
default: {},
|
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'cargo',
|
|
|
|
releaseStatus: 'unpublished',
|
|
|
|
description: 'Configuration object for Cargo crate renovation.',
|
|
|
|
stage: 'repository',
|
|
|
|
type: 'json',
|
|
|
|
default: {
|
|
|
|
enabled: false,
|
|
|
|
commitMessageTopic: 'Rust crate {{depName}}',
|
|
|
|
managerBranchPrefix: 'rust-',
|
|
|
|
},
|
|
|
|
mergeable: true,
|
|
|
|
},
|
2017-12-05 06:50:16 +00:00
|
|
|
{
|
|
|
|
name: 'supportPolicy',
|
|
|
|
description:
|
|
|
|
'Dependency support policy, e.g. used for LTS vs non-LTS etc (node-only)',
|
|
|
|
type: 'list',
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'package',
|
2017-12-05 06:50:16 +00:00
|
|
|
allowString: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'node',
|
|
|
|
description: 'Configuration object for node version renovation',
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'package',
|
2017-12-05 06:50:16 +00:00
|
|
|
type: 'json',
|
|
|
|
default: {
|
2018-06-02 16:23:18 +00:00
|
|
|
commitMessageTopic: 'Node.js',
|
|
|
|
major: {
|
|
|
|
enabled: false,
|
2018-04-17 06:39:26 +00:00
|
|
|
},
|
2017-12-05 06:50:16 +00:00
|
|
|
},
|
|
|
|
mergeable: true,
|
2018-03-30 04:34:20 +00:00
|
|
|
cli: false,
|
2017-12-05 06:50:16 +00:00
|
|
|
},
|
2018-03-04 06:08:19 +00:00
|
|
|
{
|
|
|
|
name: 'travis',
|
|
|
|
description: 'Configuration object for .travis.yml node version renovation',
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'package',
|
2018-03-04 06:08:19 +00:00
|
|
|
type: 'json',
|
2018-04-30 11:18:51 +00:00
|
|
|
default: {
|
|
|
|
enabled: false,
|
|
|
|
fileMatch: ['^.travis.yml$'],
|
2019-01-04 11:41:22 +00:00
|
|
|
versionScheme: 'node',
|
2018-04-30 11:18:51 +00:00
|
|
|
},
|
2018-03-04 06:08:19 +00:00
|
|
|
mergeable: true,
|
2018-03-30 04:34:20 +00:00
|
|
|
cli: false,
|
2018-03-04 06:08:19 +00:00
|
|
|
},
|
2018-03-04 14:52:06 +00:00
|
|
|
{
|
|
|
|
name: 'nvm',
|
|
|
|
description: 'Configuration object for .nvmrc files',
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'package',
|
2018-03-04 14:52:06 +00:00
|
|
|
type: 'json',
|
2018-04-30 11:18:51 +00:00
|
|
|
default: {
|
|
|
|
fileMatch: ['^.nvmrc$'],
|
2019-01-04 11:41:22 +00:00
|
|
|
versionScheme: 'node',
|
2018-04-30 11:18:51 +00:00
|
|
|
},
|
2018-03-21 05:03:06 +00:00
|
|
|
mergeable: true,
|
2018-03-30 04:34:20 +00:00
|
|
|
cli: false,
|
2018-03-04 14:52:06 +00:00
|
|
|
},
|
2017-09-14 07:31:36 +00:00
|
|
|
{
|
|
|
|
name: 'docker',
|
2018-07-21 17:40:50 +00:00
|
|
|
description: 'Configuration object for Docker language',
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'package',
|
2017-09-14 07:31:36 +00:00
|
|
|
type: 'json',
|
|
|
|
default: {
|
2018-12-13 04:29:11 +00:00
|
|
|
versionScheme: 'docker',
|
2018-04-17 06:39:26 +00:00
|
|
|
managerBranchPrefix: 'docker-',
|
2018-04-17 10:49:59 +00:00
|
|
|
commitMessageTopic: '{{{depName}}} Docker tag',
|
2017-10-24 04:36:52 +00:00
|
|
|
major: { enabled: false },
|
2018-12-10 03:26:14 +00:00
|
|
|
commitMessageExtra:
|
|
|
|
'to v{{#if isMajor}}{{{newMajor}}}{{else}}{{{newVersion}}}{{/if}}',
|
2017-10-25 07:57:57 +00:00
|
|
|
digest: {
|
2018-08-11 09:25:47 +00:00
|
|
|
branchTopic: '{{{depNameSanitized}}}-{{{currentValue}}}',
|
2018-04-17 06:39:26 +00:00
|
|
|
commitMessageExtra: 'to {{newDigestShort}}',
|
2018-09-19 17:50:51 +00:00
|
|
|
commitMessageTopic:
|
|
|
|
'{{{depName}}}{{#if currentValue}}:{{{currentValue}}}{{/if}} Docker digest',
|
2018-04-17 06:39:26 +00:00
|
|
|
group: {
|
2018-04-17 10:49:59 +00:00
|
|
|
commitMessageTopic: '{{{groupName}}}',
|
2018-10-08 09:50:17 +00:00
|
|
|
commitMessageExtra: '',
|
2018-04-17 06:39:26 +00:00
|
|
|
},
|
2017-10-25 07:57:57 +00:00
|
|
|
},
|
2017-09-14 07:31:36 +00:00
|
|
|
pin: {
|
2018-04-17 06:39:26 +00:00
|
|
|
commitMessageExtra: '',
|
|
|
|
groupName: 'Docker digests',
|
2017-09-14 07:31:36 +00:00
|
|
|
group: {
|
2018-04-17 10:49:59 +00:00
|
|
|
commitMessageTopic: '{{{groupName}}}',
|
2018-04-17 06:39:26 +00:00
|
|
|
branchTopic: 'digests-pin',
|
2017-09-14 07:31:36 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
group: {
|
2018-04-17 10:49:59 +00:00
|
|
|
commitMessageTopic: '{{{groupName}}} Docker tags',
|
2017-09-14 07:31:36 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
},
|
2018-03-28 13:24:42 +00:00
|
|
|
{
|
|
|
|
name: 'docker-compose',
|
|
|
|
description:
|
|
|
|
'Configuration object for Docker Compose renovation. Also inherits settings from `docker` object.',
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'package',
|
2018-03-28 13:24:42 +00:00
|
|
|
type: 'json',
|
2018-04-30 11:18:51 +00:00
|
|
|
default: {
|
|
|
|
fileMatch: ['(^|/)docker-compose[^/]*\\.ya?ml$'],
|
|
|
|
},
|
2018-03-30 04:34:20 +00:00
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
2018-03-28 13:24:42 +00:00
|
|
|
},
|
2018-07-21 17:40:50 +00:00
|
|
|
{
|
|
|
|
name: 'dockerfile',
|
|
|
|
description: 'Configuration object for Dockerfile renovation',
|
|
|
|
stage: 'package',
|
|
|
|
type: 'json',
|
|
|
|
default: {
|
|
|
|
fileMatch: ['(^|/)Dockerfile$'],
|
|
|
|
},
|
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
},
|
2018-08-04 06:04:11 +00:00
|
|
|
{
|
|
|
|
name: 'kubernetes',
|
|
|
|
description:
|
|
|
|
'Configuration object for Kubernetes renovation. Also inherits settings from `docker` object.',
|
|
|
|
stage: 'package',
|
|
|
|
type: 'json',
|
|
|
|
default: {
|
|
|
|
fileMatch: [],
|
|
|
|
},
|
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
},
|
2018-03-28 18:12:56 +00:00
|
|
|
{
|
|
|
|
name: 'circleci',
|
|
|
|
description:
|
|
|
|
'Configuration object for CircleCI yml renovation. Also inherits settings from `docker` object.',
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'package',
|
2018-03-28 18:12:56 +00:00
|
|
|
type: 'json',
|
2018-04-30 11:18:51 +00:00
|
|
|
default: {
|
2018-08-29 04:58:55 +00:00
|
|
|
fileMatch: ['(^|/).circleci/config.yml$'],
|
2018-04-30 11:18:51 +00:00
|
|
|
},
|
2018-03-30 04:34:20 +00:00
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
2018-03-28 18:12:56 +00:00
|
|
|
},
|
2018-12-18 10:18:27 +00:00
|
|
|
{
|
|
|
|
name: 'ansible',
|
|
|
|
description:
|
|
|
|
'Configuration object for Ansible yaml renovation. Also inherits settings from `docker` object.',
|
|
|
|
stage: 'package',
|
|
|
|
type: 'json',
|
|
|
|
default: {
|
|
|
|
fileMatch: ['(^|/)tasks/[^/]+\\.ya?ml$'],
|
|
|
|
},
|
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
},
|
2018-06-08 04:15:13 +00:00
|
|
|
{
|
|
|
|
name: 'composer',
|
|
|
|
description: 'Configuration object for composer.json files',
|
|
|
|
stage: 'package',
|
|
|
|
type: 'json',
|
|
|
|
default: {
|
2018-11-17 06:16:49 +00:00
|
|
|
fileMatch: ['(^|/)([\\w-]*)composer.json$'],
|
2019-01-03 06:32:44 +00:00
|
|
|
versionScheme: 'composer',
|
2018-10-21 12:59:52 +00:00
|
|
|
ignorePath: ['**/vendor/**'],
|
2018-06-08 04:15:13 +00:00
|
|
|
},
|
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'php',
|
|
|
|
description: 'Configuration object for php',
|
|
|
|
stage: 'package',
|
|
|
|
type: 'json',
|
|
|
|
default: {},
|
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
},
|
2018-04-28 18:39:07 +00:00
|
|
|
{
|
|
|
|
name: 'pip_requirements',
|
|
|
|
description: 'Configuration object for requirements.txt files',
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'package',
|
2018-04-28 18:39:07 +00:00
|
|
|
type: 'json',
|
|
|
|
default: {
|
2018-11-17 06:16:49 +00:00
|
|
|
fileMatch: ['(^|/)([\\w-]*)requirements.(txt|pip)$'],
|
2018-04-28 18:39:07 +00:00
|
|
|
},
|
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
},
|
2018-11-15 17:42:01 +00:00
|
|
|
{
|
|
|
|
name: 'pip_setup',
|
2018-11-15 17:47:30 +00:00
|
|
|
releaseStatus: 'beta',
|
2018-11-15 17:42:01 +00:00
|
|
|
description: 'Configuration object for setup.py files',
|
|
|
|
stage: 'package',
|
|
|
|
type: 'json',
|
|
|
|
default: {
|
|
|
|
enabled: false,
|
2018-11-17 06:16:49 +00:00
|
|
|
fileMatch: ['(^|/)setup.py$'],
|
2018-11-15 17:42:01 +00:00
|
|
|
},
|
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
},
|
2018-11-23 06:58:25 +00:00
|
|
|
{
|
|
|
|
name: 'pipenv',
|
|
|
|
releaseStatus: 'beta',
|
|
|
|
description: 'Configuration object for Pipfile files',
|
|
|
|
stage: 'package',
|
|
|
|
type: 'json',
|
|
|
|
default: {
|
|
|
|
enabled: false,
|
|
|
|
fileMatch: ['(^|/)Pipfile$'],
|
|
|
|
},
|
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
},
|
2018-04-28 18:39:07 +00:00
|
|
|
{
|
|
|
|
name: 'python',
|
|
|
|
description: 'Configuration object for python',
|
2018-05-06 09:59:33 +00:00
|
|
|
stage: 'package',
|
2018-04-28 18:39:07 +00:00
|
|
|
type: 'json',
|
2018-12-13 04:29:11 +00:00
|
|
|
default: {
|
|
|
|
versionScheme: 'pep440',
|
|
|
|
},
|
2018-04-28 18:39:07 +00:00
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
},
|
2018-11-04 17:12:58 +00:00
|
|
|
{
|
|
|
|
name: 'compatibility',
|
|
|
|
description: 'Configuration object for compatibility',
|
|
|
|
type: 'object',
|
|
|
|
default: {},
|
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
},
|
2018-10-29 16:32:31 +00:00
|
|
|
{
|
|
|
|
name: 'java',
|
|
|
|
description: 'Configuration object for all Java package managers',
|
|
|
|
stage: 'package',
|
|
|
|
type: 'json',
|
|
|
|
default: {},
|
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'gradle',
|
2019-01-09 20:17:54 +00:00
|
|
|
releaseStatus: 'beta',
|
2018-10-29 16:32:31 +00:00
|
|
|
description: 'Configuration object for build.gradle files',
|
|
|
|
stage: 'package',
|
|
|
|
type: 'json',
|
|
|
|
default: {
|
|
|
|
enabled: false,
|
2018-11-05 10:27:07 +00:00
|
|
|
fileMatch: ['\\.gradle$', '(^|/)gradle.properties$'],
|
2018-10-29 16:32:31 +00:00
|
|
|
timeout: 300,
|
|
|
|
},
|
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
},
|
2019-01-09 11:50:53 +00:00
|
|
|
{
|
|
|
|
name: 'gradle-wrapper',
|
|
|
|
description: 'Configuration object for gradle-wrapper.properties files',
|
|
|
|
stage: 'package',
|
|
|
|
type: 'json',
|
|
|
|
default: {
|
|
|
|
fileMatch: ['(^|/)gradle/wrapper/gradle-wrapper.properties$'],
|
|
|
|
},
|
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
},
|
2018-07-22 04:33:11 +00:00
|
|
|
{
|
|
|
|
name: 'gitlabci',
|
|
|
|
description:
|
|
|
|
'Configuration object for GitLab CI yml renovation. Also inherits settings from `docker` object.',
|
|
|
|
stage: 'repository',
|
|
|
|
type: 'json',
|
|
|
|
default: {
|
2018-11-17 06:16:49 +00:00
|
|
|
fileMatch: ['^\\.gitlab-ci\\.yml$'],
|
2018-07-22 04:33:11 +00:00
|
|
|
},
|
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
},
|
2018-06-14 09:15:52 +00:00
|
|
|
{
|
|
|
|
name: 'nuget',
|
|
|
|
description: 'Configuration object for C#/Nuget',
|
|
|
|
stage: 'package',
|
|
|
|
type: 'json',
|
|
|
|
default: {
|
2018-11-17 06:16:49 +00:00
|
|
|
fileMatch: ['\\.csproj$'],
|
2018-06-14 09:15:52 +00:00
|
|
|
},
|
|
|
|
mergeable: true,
|
|
|
|
cli: false,
|
|
|
|
},
|
2018-08-05 05:01:49 +00:00
|
|
|
{
|
2018-09-12 10:16:17 +00:00
|
|
|
name: 'hostRules',
|
|
|
|
description: 'Host rules/configuration including credentials',
|
2018-08-05 05:01:49 +00:00
|
|
|
type: 'list',
|
2018-08-05 05:32:20 +00:00
|
|
|
stage: 'repository',
|
2018-08-31 19:44:40 +00:00
|
|
|
cli: true,
|
2018-08-05 05:01:49 +00:00
|
|
|
mergeable: true,
|
|
|
|
},
|
2018-09-21 07:46:51 +00:00
|
|
|
{
|
|
|
|
name: 'prBodyDefinitions',
|
|
|
|
description: 'Table column definitions for use in PR tables',
|
|
|
|
type: 'object',
|
|
|
|
mergeable: true,
|
|
|
|
default: {
|
|
|
|
Package: '{{{depName}}}',
|
|
|
|
Type: '{{{depType}}}',
|
|
|
|
Update: '{{{updateType}}}',
|
2018-09-24 20:04:04 +00:00
|
|
|
'Current value': '{{{currentValue}}}',
|
2018-09-21 07:46:51 +00:00
|
|
|
'New value': '{{{newValue}}}',
|
2018-09-24 20:04:04 +00:00
|
|
|
Change:
|
2019-01-24 05:39:23 +00:00
|
|
|
'{{#if displayFrom}}`{{{displayFrom}}}` -> {{else}}{{#if currentValue}}`{{{currentValue}}}` -> {{/if}}{{/if}}{{#if displayTo}}`{{{displayTo}}}`{{else}}`{{{newValue}}}`{{/if}}',
|
2018-09-21 07:46:51 +00:00
|
|
|
References: '{{{references}}}',
|
|
|
|
'Package file': '{{{packageFile}}}',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'prBodyColumns',
|
|
|
|
description: 'List of columns to use in PR bodies',
|
|
|
|
type: 'list',
|
2018-09-24 20:04:04 +00:00
|
|
|
default: ['Package', 'Type', 'Update', 'Change', 'References'],
|
2018-09-21 07:46:51 +00:00
|
|
|
},
|
2018-09-21 09:36:07 +00:00
|
|
|
{
|
|
|
|
name: 'prBodyNotes',
|
|
|
|
description:
|
|
|
|
'List of additional notes/templates to be included in the Pull Request bodies.',
|
|
|
|
type: 'list',
|
|
|
|
default: [],
|
|
|
|
allowString: true,
|
|
|
|
mergeable: true,
|
|
|
|
},
|
2018-12-08 11:42:56 +00:00
|
|
|
{
|
|
|
|
name: 'suppressNotifications',
|
|
|
|
description:
|
|
|
|
'Options to suppress various types of warnings and other notifications',
|
|
|
|
type: 'list',
|
2018-12-19 05:28:39 +00:00
|
|
|
default: [],
|
2018-12-08 11:42:56 +00:00
|
|
|
allowedValues: [
|
|
|
|
'prIgnoreNotification',
|
|
|
|
'prEditNotification',
|
|
|
|
'branchAutomergeFailure',
|
|
|
|
'lockFileErrors',
|
2018-12-09 10:39:35 +00:00
|
|
|
'deprecationWarningIssues',
|
2018-12-11 06:22:07 +00:00
|
|
|
'onboardingClose',
|
2018-12-08 11:42:56 +00:00
|
|
|
],
|
|
|
|
cli: false,
|
|
|
|
env: false,
|
2018-12-16 17:45:32 +00:00
|
|
|
mergeable: true,
|
2018-12-08 14:51:34 +00:00
|
|
|
},
|
2017-01-20 13:03:18 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
function getOptions() {
|
|
|
|
return options;
|
|
|
|
}
|