Configuration Options

Configuration Options

This document describes all the configuration options you may configure in a Renovate configuration file. Any config you define applies to the whole repository (e.g. if you have a monorepo).

You can store your Renovate configuration file in one of the following locations:

  • .github/renovate.json
  • .github/renovate.json5
  • .gitlab/renovate.json
  • .gitlab/renovate.json5
  • .renovaterc.json
  • renovate.json
  • renovate.json5
  • .renovaterc
  • package.json (within a "renovate" section)

Renovate always uses the config from the repository's default branch, even if that configuration specifies multiple baseBranches. Renovate does not read/override the config from within each base branch if present.

Also, be sure to check out Renovate's shareable config presets to save yourself from reinventing any wheels.

If you have any questions about the below config options, or would like to get help/feedback about a config, please post it as an issue in renovatebot/config-help where we will do our best to answer your question.

additionalReviewers

Additional reviewers for Pull Requests (in contrast to reviewers, this option adds to the existing reviewer list, rather than replacing it)

NameValue
typearray
subTypestring
mergeabletrue

In contrast to reviewers, this option adds to the existing reviewer list, rather than replacing it. This makes it suitable for augmenting a preset or base list without displacing the original, for example when adding focused reviewers for a specific package group.

aliases

Aliases for registries, package manager specific

NameValue
typeobject
additionalProperties[object Object]

The aliases object is used for configuring registry aliases. Currently it is needed/supported for the helm-requiremenets manager only.

helm-requirements includes this default alias:

{
  "aliases": {
    "stable": "https://kubernetes-charts.storage.googleapis.com/"
  }
}

Alias values must be properly formatted URIs.

assignAutomerge

Assign reviewers and assignees even if the PR is to be automerged

NameValue
typeboolean
defaultfalse

By default, Renovate will not assign reviewers and assignees to an automerge-enabled PR unless it fails status checks. By configuring this setting to true, Renovate will instead always assign reviewers and assignees for automerging PRs at time of creation.

assignees

Assignees for Pull Request (either username or email address depending on the platform)

NameValue
typearray
subTypestring

Must be valid usernames on the platform in use.

assigneesFromCodeOwners

Determine assignees based on configured code owners and changes in PR.

NameValue
typeboolean
defaultfalse

If enabled Renovate will try to determine PR assignees by matching rules defined in a CODEOWNERS file against the changes in the PR.

See GitHub or GitLab documentation for details on syntax and possible file locations.

assigneesSampleSize

Take a random sample of given size from assignees.

NameValue
typeinteger

If configured, Renovate will take a random sample of given size from assignees and assign them only, instead of assigning the entire list of assignees you have configured.

automerge

Whether to automerge branches/PRs automatically, without human intervention

NameValue
typeboolean
defaultfalse

By default, Renovate raises PRs but leaves them to someone or something else to merge them. By configuring this setting, you can enable Renovate to automerge PRs or even branches itself, therefore reducing the amount of human intervention required.

Usually you won't want to automerge all PRs, for example most people would want to leave major dependency updates to a human to review first. You could configure Renovate to automerge all but major this way:

{
  "packageRules": [
    {
      "updateTypes": ["minor", "patch", "pin", "digest"],
      "automerge": true
    }
  ]
}

Also note that this option can be combined with other nested settings, such as dependency type. So for example you could elect to automerge all (passing) devDependencies only this way:

{
  "packageRules": [
    {
      "depTypeList": ["devDependencies"],
      "automerge": true
    }
  ]
}

Important: Renovate won't automerge on GitHub if a PR has a negative review outstanding.

automergeComment

PR comment to add to trigger automerge. Used only if automergeType=pr-comment

NameValue
typestring
default"automergeComment"

Use this only if you configure automergeType="pr-comment".

Example use:

{
  "automerge": true,
  "automergeType": "pr-comment",
  "automergeComment": "bors: r+"
}

automergeType

How to automerge, if enabled.

NameValue
typestring
allowedValuesbranch,pr,pr-comment
default"pr"

This setting is only applicable if you opt in to configure automerge to true for any of your dependencies.

Automerging defaults to using Pull Requests (automergeType="pr"). In that case Renovate first creates a branch, then an associated Pull Request, and then automerges the first time it detects that the Pull Requests status checks are "green".

Note: if you have no tests but still want Renovate to automerge, you need to add "requiredStatusChecks": null to your configuration.

If you prefer that Renovate more silently automerge without Pull Requests at all, you can configure "automergeType": "branch". In this case Renovate will:

  • Create the branch, wait for test results
  • Rebase it any time it gets out of date with the base branch
  • Automerge the branch commit if it's: (a) up-to-date with the base branch, and (b) passing all tests
  • As a backup, raise a PR only if either: (a) tests fail, or (b) tests remain pending for too long (default: 24 hours)

The final value for automergeType is "pr-comment", intended only for users who already have a "merge bot" such as bors-ng and want Renovate to not actually automerge by itself and instead tell bors-ng to merge for it, by using a comment in the PR. If you're not already using bors-ng or similar, don't worry about this option.

azureAutoComplete

If set to true, Azure DevOps PRs will be set to auto-complete after all (if any) branch policies have been met

NameValue
typeboolean
defaultfalse

Setting this to true will configure PRs in Azure DevOps to auto-complete after all (if any) branch policies have been met.

You can also configure this using packageRules if you want to use it selectively (e.g. per-package).

azureWorkItemId

The id of an existing work item on Azure Boards to link to each PR

NameValue
typeinteger
default0

When creating a PR in Azure DevOps, some branches can be protected with branch policies to check for linked work items. Creating a work item in Azure DevOps is beyond the scope of Renovate, but Renovate can link an already existing work item when creating PRs.

baseBranches

An array of one or more custom base branches to be processed. If left empty, the default branch will be chosen

NameValue
typearray

By default, Renovate will detect and process only the repository's default branch, e.g. master. For most projects, this is the expected approach. However, Renovate also allows users to explicitly configure baseBranches, e.g. for use cases such as:

  • You wish Renovate to process only a non-default branch, e.g. dev: "baseBranches": ["dev"]
  • You have multiple release streams you need Renovate to keep up to date, e.g. in branches master and next: "baseBranches": ["master", "next"]

It's possible to add this setting into the renovate.json file as part of the "Configure Renovate" onboarding PR. If so then Renovate will reflect this setting in its description and use package file contents from the custom base branch(es) instead of default.

bbUseDefaultReviewers

Use the default reviewers (Bitbucket only).

NameValue
typeboolean
defaulttrue

Configuring this to true means that Renovate will detect and apply the default reviewers rules to PRs (Bitbucket only).

branchName

Branch name template

NameValue
typestring
default"{{{branchPrefix}}}{{{managerBranchPrefix}}}{{{branchTopic}}}"

Warning: it's strongly recommended not to configure this field directly. Use at your own risk. If you truly need to configure this then it probably means either:

  • You are hopefully mistaken, and there's a better approach you should use, so ask here or
  • You have a use case we didn't anticipate and we should have a feature request from you to add it to the project

branchPrefix

Prefix to use for all branch names

NameValue
typestring
default"renovate/"

You can modify this field if you want to change the prefix used. For example if you want branches to be like deps/eslint-4.x instead of renovate/eslint-4.x then you configure branchPrefix = deps/. Or if you wish to avoid forward slashes in branch names then you could use renovate_ instead, for example.

Note that this setting does not change the default onboarding branch name, i.e. renovate/configure. If you wish to change that too, you need to also configure the field onboardingBranch in your admin bot config.

branchTopic

Branch topic

NameValue
typestring
default"{{{depNameSanitized}}}-{{{newMajor}}}{{#if isPatch}}.{{{newMinor}}}{{/if}}.x{{#if isLockfileUpdate}}-lockfile{{/if}}"

This field is combined with branchPrefix and managerBranchPrefix to form the full branchName. branchName uniqueness is important for dependency update grouping or non-grouping so be cautious about ever editing this field manually. This is an advance field and it's recommend you seek a config review before applying it.

bumpVersion

Bump the version in the package.json being updated

NameValue
typestring
allowedValuesmajor,minor,patch
defaultnull

Currently this setting supports npm only, so raise a feature request if you have a use for it with other package managers. It's purpose is if you want Renovate to update the version field within your file's package.json any time it updates dependencies within. Usually this is for automatic release purposes, so that you don't need to add another step after Renovate before you can release a new version.

Configure this value to "patch", "minor" or "major" to have Renovate update the version in your edited package.json. e.g. if you wish Renovate to always increase the target package.json version with a patch update, configure this to "patch".

You can also configure this field to "mirror:x" where x is the name of a package in the package.json. Doing so means that the package.json version field will mirror whatever the version is that x depended on. Make sure that version is a pinned version of course, as otherwise it won't be valid.

commitBody

Commit message body template. Will be appended to commit message, separated by two line returns.

NameValue
typestring
defaultnull

Configure this if you wish Renovate to add a commit body, otherwise Renovate just uses a regular single-line commit.

For example, To add [skip ci] to every commit you could configure:

{
  "commitBody": "[skip ci]"
}

Another example would be if you want to configure a DCO signoff to each commit.

commitBodyTable

If enabled, append a table in the commit message body describing all updates in the commit

NameValue
typeboolean
defaultfalse

commitMessage

Message to use for commit messages and pull request titles

NameValue
typestring
default"{{{commitMessagePrefix}}} {{{commitMessageAction}}} {{{commitMessageTopic}}} {{{commitMessageExtra}}} {{{commitMessageSuffix}}}"

Editing of commitMessage directly is now deprecated and not recommended. Please instead edit the fields such as commitMessageAction, commitMessageExtra, etc.

commitMessageAction

Action verb to use in commit messages and PR titles

NameValue
typestring
default"Update"

This is used to alter commitMessage and prTitle without needing to copy/paste the whole string. Actions may be like Update, Pin, Roll back, Refresh, etc. Check out the default value for commitMessage to understand how this field is used.

commitMessageExtra

Extra description used after the commit message topic - typically the version

NameValue
typestring
default"to {{#if isMajor}}v{{{newMajor}}}{{else}}{{#if isSingleVersion}}v{{{toVersion}}}{{else}}{{{newValue}}}{{/if}}{{/if}}"

This is used to alter commitMessage and prTitle without needing to copy/paste the whole string. The "extra" is usually an identifier of the new version, e.g. "to v1.3.2" or "to tag 9.2".

commitMessagePrefix

Prefix to add to start of commit messages and PR titles. Uses a semantic prefix if semanticCommits enabled

NameValue
typestring
defaultnull

This is used to alter commitMessage and prTitle without needing to copy/paste the whole string. The "prefix" is usually an automatically applied semantic commit prefix, however it can also be statically configured.

commitMessageSuffix

Suffix to add to end of commit messages and PR titles.

NameValue
typestring
defaultnull

This is used to add a suffix to commit messages. Usually left empty except for internal use (multiple base branches, and vulnerability alerts).

commitMessageTopic

The upgrade topic/noun used in commit messages and PR titles

NameValue
typestring
default"dependency {{depName}}"

This is used to alter commitMessage and prTitle without needing to copy/paste the whole string. The "topic" is usually refers to the dependency being updated, e.g. "dependency react".

compatibility

Configuration object for compatibility

NameValue
typeobject
mergeabletrue

This is used to manually restrict which versions are possible to upgrade to based on their language support. For now this only supports python, other compatibility restrictions will be added in the future.

{
  "compatibility": {
    "python": "2.7"
  }
}

configWarningReuseIssue

Set this to false and Renovate will open each config warning in a new issue instead of reopening/reusing an existing issue.

NameValue
typeboolean
defaulttrue

Renovate's default behaviour is to reuse/reopen a single Config Warning issue in each repository so as to keep the "noise" down. However for some people this has the downside that the config warning won't be sorted near the top if you view issues by creation date. Configure this option to false if you prefer Renovate to open a new issue whenever there is a config warning.

dependencyDashboard

Whether to create a "Dependency Dashboard" issue within the repository.

NameValue
typeboolean
defaultfalse

Configuring dependencyDashboard to true will lead to the creation of a "Dependency Dashboard" issue within the repository. This issue contains a list of all PRs pending, open, closed (unmerged) or in error. The goal of this issue is to give visibility into all updates that Renovate is managing.

Examples of what having a Dependency Dashboard will allow you to do:

  • View all PRs in one place, rather than having to filter PRs by author
  • Rebase/retry multiple PRs without having to open each individually
  • Override any rate limiting (e.g. concurrent PRs) or scheduling to force Renovate to create a PR that would otherwise be suppressed
  • Recreate an unmerged PR (e.g. for a major update that you postponed by closing the original PR)

Note: Enabling the Dependency Dashboard does not itself change any of the "control flow" of Renovate, e.g. it will otherwise still create and manage PRs exactly as it always has, including scheduling and rate limiting. The Dependency Dashboard therefore provides visibility as well as additional control.

dependencyDashboardApproval

Whether updates should require manual approval from within the Dependency Dashboard issue before creation.

NameValue
typeboolean
defaultfalse

Setting dependencyDashboardApproval to true means that Renovate will no longer create branches/PRs automatically but instead wait for manual approval from within the Dependency Dashboard.

In this case, the Dependency Dashboard does change the flow of Renovate, because PRs will stop appearing until you approve them within the issue. Instead of enabling this repository-wide, you may instead with to use package rules to enable it selectively, e.g. for major updates only, or for certain package managers, etc. i.e. it is possible to require approval for only certain types of updates only.

Note: Enabling Dependency Dashboard Approval implicitly enables dependencyDashboard too, so it is not necessary to configure both to true.

dependencyDashboardAutoclose

Set to true and Renovate will autoclose the Dependency Dashboard issue if there are no updates.

NameValue
typeboolean
defaultfalse

You can configure this to true if you prefer Renovate to close an existing Dependency Dashboard whenever there are no outstanding PRs left.

dependencyDashboardFooter

Any text added here will be placed last in the Dependency Dashboard issue body, with a divider separator before it.

NameValue
typestring
defaultnull

dependencyDashboardHeader

Any text added here will be placed first in the Dependency Dashboard issue body.

NameValue
typestring
default"This issue contains a list of Renovate updates and their statuses."

dependencyDashboardTitle

Title to use for the Dependency Dashboard issue

NameValue
typestring
default"Dependency Dashboard"

Configure this option if you prefer a different title for the Dependency Dashboard.

description

Plain text description for a config or preset

NameValue
typearray
subTypestring
mergeabletrue

The description field is used by config presets to describe what they do. They are then collated as part of the onboarding description.

digest

Configuration to apply when updating a digest (no change in tag/version)

NameValue
typeobject
mergeabletrue

Add to this object if you wish to define rules that apply only to PRs that update Docker digests.

docker

Configuration object for Docker language

NameValue
typeobject
mergeabletrue

Add config here if you wish it to apply to Docker package managers Dockerfile and Docker Compose. If instead you mean to apply settings to any package manager that updates using the Docker datasource, use a package rule instead, e.g.

{
  "packageRules": [
    {
      "datasources": ["docker"],
      "labels": ["docker-update"]
    }
  ]
}

dotnet

Configuration object for .NET language

NameValue
typeobject
mergeabletrue

draftPR

If enabled, the PR created by Renovate is set to a draft.

NameValue
typeboolean
defaultfalse

If you want the PRs created by Renovate to be considered as drafts rather than normal PRs in Github you could add this property to your renovate.json:

{
  "draftPR": true
}

Please see draft pull requests on Github for more information about draft PRs.

enabled

Enable or disable the bot

NameValue
typeboolean
defaulttrue

The most common use of enabled is if you want to turn Renovate's functionality off, for some reason.

For example, if you wanted to disable Renovate completely on a repository, you could make this your renovate.json:

{
  "enabled": false
}

To disable Renovate for all eslint packages, you can configure a package rule like:

{
  "packageRules": [
    {
      "packagePatterns": ["^eslint"],
      "enabled": false
    }
  ]
}

To disable Renovate for npm devDependencies but keep it for dependencies you could configure:

{
  "packageRules": [
    {
      "managers": ["npm"],
      "depTypeList": ["devDependencies"],
      "enabled": false
    }
  ]
}

enabledManagers

A list of package managers to enable. If defined, then all managers not on the list are disabled.

NameValue
typearray

This is a way to "whitelist" certain package managers and disable all others.

Possible managers are: 'ansible', 'ansible-galaxy', 'bazel', 'buildkite', 'bundler', 'cargo', 'cdnurl', 'circleci', 'cocoapods', 'composer', 'deps-edn','docker-compose', 'dockerfile', 'droneci', 'git-submodules', 'github-actions', 'gitlabci', 'gitlabci-include', 'gomod', 'gradle', 'gradle-wrapper', 'helm-requirements', 'helm-values', 'helmfile', 'homebrew', 'html', 'kubernetes', 'kustomize', 'leiningen', 'maven', 'meteor', 'mix', 'nodenv', 'npm', 'nuget', 'nvm', 'pip_requirements', 'pip_setup', 'pipenv', 'poetry', 'pub', 'ruby-version', 'regex', 'sbt', 'swift', 'terraform', 'travis'

Example:

{
  "enabledManagers": ["dockerfile", "npm"]
}

encrypted

A configuration object containing configuration encrypted with project key.

NameValue
typeobject

See Private npm module support for details on how this is used to encrypt npm tokens.

excludeCommitPaths

A file that matches any of these glob patterns will not be committed, even if it has been updated.

NameValue
typearray
subTypestring

Warning: Advanced use!

Be careful you know what you're doing with this option. The initial intended use is to allow the user to exclude certain dependencies from being added/removed/modified when "vendoring" dependencies. Example:

{
  "excludeCommitPaths": ["vendor/golang.org/x/text/**"]
}

The above would mean Renovate would not include files matching the above glob pattern in the commit, even if it thinks they should be updated.

extends

Configuration presets to use/extend. Note: does not work if configured in config.js

NameValue
typearray
subTypestring

See shareable config presets for details.

fileMatch

RegEx (re2) pattern for matching manager files

NameValue
typearray
subTypestring
formatregex
mergeabletrue

fileMatch is used by Renovate to know which files in a repository to parse and extract, and it is possible to override defaults values to customize for your project's needs.

Sometimes file matches are really simple - for example with Go Modules Renovate looks for any go.mod file, and you probably don't need to change that default.

At other times, the possible files is too vague for Renovate to have any default. For default, Kubernetes manifests can exist in any *.yaml file and we don't want Renovate to parse every single YAML file in every repository just in case some of them contain a Kubernetes manifest, so Renovate's default fileMatch for manager kubernetes is actually empty ([]) and needs the user to tell Renovate what directories/files to look in.

Finally, there are cases where Renovate's default fileMatch is good, but you may be using file patterns that a bot couldn't posibly guess about. For example, Renovate's default fileMatch for Dockerfile is ['(^|/|\\.)Dockerfile$', '(^|/)Dockerfile\\.[^/]*$']. This will catch files like backend/Dockerfile, prefix.Dockerfile or Dockerfile.suffix, but it will miss files like ACTUALLY_A_DOCKERFILE.template. Because fileMatch is mergeable, you don't need to duplicate the defaults and could just add the missing file like this:

{
  "dockerfile": {
    "fileMatch": ["^ACTUALLY_A_DOCKERFILE\\.template$"]
  }
}

followTag

If defined, packages will follow this release tag exactly.

NameValue
typestring
defaultnull

Caution: advanced functionality. Only use it if you're sure you know what you're doing.

This functionality requires that the datasource to support distribution streams/tags, such as npm does.

The primary use case for this option is if you are following a pre-release tag of a certain dependency, e.g. typescript's "insiders" build. If configured, Renovate bypasses its normal major/minor/patch upgrade logic and stable/unstable consistency logic and keeps your dependency version sync'd strictly to whatever version is in the tag.

Beware that Renovate follows tags strictly. For example, if you are following a tag like next and then that stream is released as stable and next is no longer being updated then that means your dependencies also won't be getting updated.

gitLabAutomerge

Enable or disable usage of GitLab's "merge when pipeline succeeds" feature when automerging PRs

NameValue
typeboolean
defaultfalse

Caution (fixed in GitLab >= 12.7): when this option is enabled it is possible due to a bug in GitLab that MRs with failing pipelines might still get merged. This is caused by a race condition in GitLab's Merge Request API - read the corresponding issue for details.

golang

Configuration object for Go language

NameValue
typeobject
mergeabletrue

Configuration added here applies for all Go-related updates, however currently the only supported package manager for Go is the native Go Modules (the gomod manager).

group

Config if groupName is enabled

NameValue
typeobject
mergeabletrue

Caution: Advanced functionality only. Do not use unless you know what you're doing.

The default configuration for groups are essentially internal to Renovate and you normally shouldn't need to modify them. However, you may choose to add settings to any group by defining your own group configuration object.

groupName

Human understandable name for the dependency group

NameValue
typestring

There are multiple cases where it can be useful to group multiple upgrades together. Internally Renovate uses this for branches such as "Pin Dependencies", "Lock File Maintenance", etc. Another example used previously is to group together all related eslint packages, or perhaps angular or babel. To enable grouping, you configure the groupName field to something non-null.

The groupName field allows free text and does not have any semantic interpretation by Renovate. All updates sharing the same groupName will be placed into the same branch/PR. For example, to group all non-major devDependencies updates together into a single PR:

{
  "packageRules": [
    {
      "depTypeList": ["devDependencies"],
      "updateTypes": ["patch", "minor"],
      "groupName": "devDependencies (non-major)"
    }
  ]
}

groupSlug

Slug to use for group (e.g. in branch name). Will be calculated from groupName if null

NameValue
typestring

By default, Renovate will "slugify" the groupName to determine the branch name. For example if you named your group "devDependencies (non-major)" then the branchName would be renovate/devdependencies-non-major. If you wished to override this then you could configure like this:

{
  "packageRules": [
    {
      "depTypeList": ["devDependencies"],
      "updateTypes": ["patch", "minor"],
      "groupName": "devDependencies (non-major)",
      "groupSlug": "dev-dependencies"
    }
  ]
}

As a result of the above, the branchName would be renovate/dev-dependencies instead.

Note: you shouldn't usually need to configure this unless you really care about your branch names.

hostRules

Host rules/configuration including credentials

NameValue
typearray
subTypeobject
mergeabletrue

Currently the purpose of hostRules is to configure credentials for host authentication. You tell Renovate how to match against the host you need authenticated, and then you also tell it which credentials to use.

The lookup keys for a hostRule are: hostType, domainName, hostName, and baseUrl. All are optional, but you can only have one of the last three per rule.

Supported credential fields are token, username, password, timeout, enabled and insecureRegistry.

Example for configuring docker auth:

{
  "hostRules": [
    {
      "domainName": "docker.io",
      "username": "<some-username>",
      "password": "<some-password>"
    }
  ]
}

To disable requests to a particular host, you can configure a rule like:

{
  "hostRules": [
    {
      "hostName": "registry.npmjs.org",
      "enabled": false
    }
  ]
}

A preset alternative to the above is:

{
  "extends": [":disableHost(registry.npmjs.org)"]
}

Note: Disabling a host is only 100% effective if added to self-hosted config. Renovate currently still checks its cache for results first before making connection attempts, so if a public host is blocked in your repository config (e.g. renovate.json) then it's possible you may get cached results from that host if another repository using the same bot has successfully queried for the same dependency recently.

abortIgnoreStatusCodes

A list of HTTP status codes to ignore and not abort the run because of when abortOnError=true.

NameValue
typearray
subTypenumber
parenthostRules

This field can be used to configure status codes that Renovate ignores and passes through when abortOnError is set to true. For example to also skip 404 responses then configure the following:

{
  "hostRules": [
    {
      "abortOnError": true,
      "abortStatusCodes": [404]
    }
  ]
}

Note that this field is not mergeable, so the last-applied host rule will take precedence.

abortOnError

If enabled, Renovate will abort its run when http request errors occur.

NameValue
typeboolean
parenthostRules
defaultfalse

Use this field to configure Renovate to abort runs for custom hosts. By default, Renovate will only abort for known public hosts, which has the downside that transient errors for other hosts can cause autoclosing of PRs.

To abort Renovate runs for http failures from any host:

{
  "hostRules": [
    {
      "abortOnError": true
    }
  ]
}

To abort Renovate runs for any docker datasource failures:

{
  "hostRules": [
    {
      "hostType": "docker",
      "abortOnError": true
    }
  ]
}

To abort Renovate for errors for a specific docker host:

{
  "hostRules": [
    {
      "hostName": "docker.company.com",
      "abortOnError": true
    }
  ]
}

When this field is enabled, Renovate will abort its run if it encounters either (a) any low-level http error (e.g. ETIMEDOUT) or (b) receives a response not matching any of the configured abortIgnoreStatusCodes (e.g. 500 Internal Error);

baseUrl

baseUrl for a host rule. e.g. "https://api.github.com/"

NameValue
typestring
parenthostRules
defaultnull

Use this instead of domainName or hostName if you need a rule to apply to a specific path on a host. For example, "baseUrl": "https://api.github.com" is equivalent to "hostName": "api.github.com" but "baseUrl": "https://api.github.com/google/" is not.

Renovate does not do a "longest match" algorithm to pick between multiple matching baseUrl values in different rules, so put the longer baseUrl rule after the shorter one in your hostRules.

domainName

Domain name for a host rule. e.g. "docker.io"

NameValue
typestring
parenthostRules
defaultnull

If you have any uncertainty about exactly which hosts a service uses, then it can be more reliable to use domainName instead of hostName or baseUrl. e.g. configure "hostName": "docker.io" to cover both index.docker.io and auth.docker.io and any other host that's in use.

hostName

Hostname for a host rule. e.g. "index.docker.io"

NameValue
typestring
parenthostRules
defaultnull

hostType

hostType for a package rule. Can be a platform name or a datasource name

NameValue
typestring
parenthostRules
defaultnull

hostType is another way to filter rules and can be either a platform such as github and bitbucket-server, or it can be a datasource such as docker and rubygems. You usually don't need to configure it in a host rule if you have already configured domainName, hostName or baseUrl and only one host type is in use for those, as is usually the case. hostType can help for cases like an enterprise registry that serves multiple package types and has different authentication for each, although it's often the case that multiple baseUrl rules could achieve the same thing.

insecureRegistry

explicity turn on insecure docker registry access (http)

NameValue
typeboolean
parenthostRules
defaulttrue

Warning: Advanced config, use at own risk.

Enable this option to allow Renovate to connect to an insecure docker registry that is http only. This is insecure and is not recommended.

Example:

{
  "hostRules": [
    {
      "hostName": "reg.insecure.com",
      "insecureRegistry": true
    }
  ]
}

timeout

timeout (in milliseconds) for queries to external endpoints

NameValue
typeinteger
parenthostRules

Use this figure to adjust the timeout for queries. The default is 60s, which is quite high. To adjust it down to 10s for all queries, do this:

{
  "hostRules": [
    {
      "timeout": 10000
    }
  ]
}

ignoreDeprecated

Ignore deprecated versions unless the current version is deprecated

NameValue
typeboolean
defaulttrue

By default, Renovate won't update a dependency version to a deprecated release unless the current version was itself deprecated. The goal of this is to make sure you don't upgrade from a non-deprecated version to a deprecated one just because it's higher than the current version.

If for some reason you wish to force deprecated updates with Renovate, you can configure ignoreDeprecated to false, but this is not recommended for most situations.

ignoreDeps

Dependencies to ignore

NameValue
typearray
subTypestring
mergeabletrue

The ignoreDeps configuration field allows you to define a list of dependency names to be ignored by Renovate. Currently it supports only "exact match" dependency names and not any patterns. e.g. to ignore both eslint and eslint-config-base you would add this to your config:

{
  "ignoreDeps": ["eslint", "eslint-config-base"]
}

The above is the same as if you wrote this package rule:

{
  "packageRules": [
    {
      "packageNames": ["eslint", "eslint-config-base"],
      "enabled": false
    }
  ]
}

ignoreNpmrcFile

Whether to ignore any .npmrc file found in repository

NameValue
typeboolean
defaultfalse

By default, Renovate will look for and use any .npmrc file it finds in a repository. Additionally, it will be read in by npm or yarn at the time of lock file generation. Sometimes this causes problems, for example if the file contains placeholder values, so you can configure this to true and Renovate will ignore any .npmrc files it finds and temporarily remove the file before running npm install or yarn install. Renovate will try to configure this to true also if you have configured any npmrc string within your config file.

ignorePaths

Skip any package file whose path matches one of these. Can be string or glob pattern

NameValue
typearray
subTypestring

Using this setting, you can selectively ignore package files that you don't want Renovate autodiscovering. For instance if your repository has an "examples" directory of many package.json files that you don't want to be kept up to date.

ignorePresets

A list of presets to ignore, including nested ones inside extends

NameValue
typearray
subTypestring

Use this if you are extending a complex preset but don't want to use every "sub preset" that it includes. For example, consinder this config:

{
  "extends": ["config:base"],
  "ignorePresets": [":prHourlyLimit2"]
}

It would take the entire "config:base" preset - which contains a lot of sub-presets - but ignore the ":prHourlyLimit2" rule.

ignoreScripts

Configure this to true if trustLevel is high but you wish to skip running scripts when updating lock files

NameValue
typeboolean
defaultfalse

Applicable for npm and composer only for now. Set this to true if running scripts causes problems.

ignoreUnstable

Ignore versions with unstable semver

NameValue
typeboolean
defaulttrue

By default, Renovate won't update any package versions to unstable versions (e.g. 4.0.0-rc3) unless the current version has the same major.minor.patch and was already unstable (e.g. it was already on 4.0.0-rc2). Renovate will also not "jump" unstable versions automatically, e.g. if you are on 4.0.0-rc2 and newer versions 4.0.0 and 4.1.0-alpha.1 exist then Renovate will update you to 4.0.0 only. If you need to force permanent unstable updates for a package, you can add a package rule setting ignoreUnstable to false.

Also check out the followTag configuration option above if you wish Renovate to keep you pinned to a particular release tag.

includeForks

Whether to process forked repositories or not. By default, all forked repositories are skipped over.

NameValue
typeboolean
defaultfalse

By default, Renovate will skip over any repositories that are forked. This includes if the forked repository contain a Renovate config file, because Renovate can't tell if that file was added by the original repository or not. If you wish to enable processing of a forked repository by Renovate, you need to add "includeForks": true to your repository config or run the CLI command with --include-forks=true.

If you are using the hosted WhiteSource Renovate then this option will be configured to true automatically if you "Selected" repositories individually but remain as false if you installed for "All" repositories.

includePaths

Include package files only within these defined paths

NameValue
typearray
subTypestring

If you wish for Renovate to process only select paths in the repository, use includePaths.

Alternatively, if you need to just exclude certain paths in the repository then consider ignorePaths instead. If you are more interested in including only certain package managers (e.g. npm), then consider enabledManagers instead.

java

Configuration object for all Java package managers

NameValue
typeobject
mergeabletrue

Use this configuration option for shared config across all java projects (Gradle and Maven).

js

Configuration object for javascript language

NameValue
typeobject
mergeabletrue

Use this configuration option for shared config across npm/yarn/pnpm and meteor package managers.

labels

Labels to add to Pull Request

NameValue
typearray
subTypestring

By default, Renovate won't add any labels to its PRs. If you want Renovate to do so then define a labels array of one or more label strings. If you want the same label(s) for every PR then you can configure it at the top level of config. However you can also fully override them on a per-package basis.

Consider this example:

{
  "labels": ["dependencies"],
  "packageRules": [
    {
      "packagePatterns": ["eslint"],
      "labels": ["linting"]
    }
  ]
}

With the above config, every PR raised by Renovate will have the label dependencies while PRs containing eslint-related packages will instead have the label linting.

lazyGrouping

Use group names only when multiple dependencies upgraded

NameValue
typeboolean
defaulttrue

By default, Renovate will use group names in Pull Request titles only when the PR contains two or more dependencies. For example you may have defined a dependency group calls "All eslint packages" with a packagePattern of ^eslint, but if the only upgrade available at the time is eslint-config-airbnb then it makes more sense for the PR to be named "Upgrade eslint-config-airbnb to v2.1.4" than to name it "Upgrade All eslint packages". If ever this behaviour is undesirable then you can override it by setting this option to false.

lockFileMaintenance

Configuration for lock file maintenance

NameValue
typeobject
mergeabletrue

This feature can be used to refresh lock files and keep them up-to-date. "Maintaining" a lock file means recreating it so that every dependency version within it is updated to the latest. Supported lock files are package-lock.json, yarn.lock, composer.lock, Gemfile.lock and poetry.lock. Others may be added via feature request.

This feature is disabled by default. If you wish to enable this feature then you could add this to your configuration:

{
  "lockFileMaintenance": { "enabled": true }
}

To reduce "noise" in the repository, it defaults its schedule to "before 5am on monday", i.e. to achieve once-per-week semantics. Depending on its running schedule, Renovate may run a few times within that time window - even possibly updating the lock file more than once - but it hopefully leaves enough time for tests to run and automerge to apply, if configured.

major

Configuration to apply when an update type is major

NameValue
typeobject
mergeabletrue

Add to this object if you wish to define rules that apply only to major updates.

managerBranchPrefix

Branch manager prefix

NameValue
typestring
default""

This value defaults to an empty string, because historically no prefix was necessary for when Renovate was JS-only. Now - for example - we use docker- for Docker branches, so they may look like renovate/docker-ubuntu-16.x. You normally don't need to configure this.

minor

Configuration to apply when an update type is minor

NameValue
typeobject
mergeabletrue

Add to this object if you wish to define rules that apply only to minor updates.

node

Configuration object for node version renovation

NameValue
typeobject
mergeabletrue

Using this configuration option allows you to apply common configuration and policies across all Node.js version updates even if managed by different package managers (npm, yarn, etc.).

Check out our Node.js documentation for a comprehensive explanation of how the node option can be used.

npmToken

npm token used for authenticating with the default registry

NameValue
typestring
defaultnull

See Private npm module support for details on how this is used. Typically you would encrypt it and put it inside the encrypted object.

npmrc

String copy of npmrc file. Use \n instead of line breaks

NameValue
typestring
defaultnull

See Private npm module support for details on how this is used.

packageRules

Rules for matching package names

NameValue
typearray
mergeabletrue

packageRules is a powerful feature that lets you apply rules to individual packages or to groups of packages using regex pattern matching.

Here is an example if you want to group together all packages starting with eslint into a single branch/PR:

{
  "packageRules": [
    {
      "packagePatterns": ["^eslint"],
      "groupName": "eslint packages"
    }
  ]
}

Note how the above uses packagePatterns with a regex value.

Here is an example where you might want to limit the "noisy" package aws-sdk to updates just once per week:

{
  "packageRules": [
    {
      "packageNames": ["aws-sdk"],
      "schedule": ["after 9pm on sunday"]
    }
  ]
}

Note how the above uses packageNames instead of packagePatterns because it is an exact match package name. This is the equivalent of defining "packagePatterns": ["^aws\-sdk$"] and hence much simpler. However you can mix together both packageNames and packagePatterns in the same package rule and the rule will be applied if either match. Example:

{
  "packageRules": [
    {
      "packageNames": ["neutrino"],
      "packagePatterns": ["^@neutrino/"],
      "groupName": "neutrino monorepo"
    }
  ]
}

The above rule will group together the neutrino package and any package matching @neutrino/*.

Path rules are convenient to use if you wish to apply configuration rules to certain package files using patterns. For example, if you have an examples directory and you want all updates to those examples to use the chore prefix instead of fix, then you could add this configuration:

{
  "packageRules": [
    {
      "paths": ["examples/**"],
      "extends": [":semanticCommitTypeAll(chore)"]
    }
  ]
}

If you wish to limit renovate to apply configuration rules to certain files in the root repository directory, you have to use paths with either a partial string match or a minimatch pattern. For example you have multiple package.json and want to use dependencyDashboardApproval only on the root package.json:

{
  "packageRules": [
    {
      "paths": ["+(package.json)"],
      "dependencyDashboardApproval": true
    }
  ]
}

Important to know: Renovate will evaluate all packageRules and not stop once it gets a first match. Therefore, you should order your packageRules in order of importance so that later rules can override settings from earlier rules if necessary.

allowedVersions

A semver range defining allowed versions for dependencies

NameValue
typestring
parentpackageRules
defaultnull

Use this - usually within a packageRule - to limit how far to upgrade a dependency. For example, if you wish to upgrade to angular v1.5 but not to angular v1.6 or higher, you could define this to be <= 1.5 or < 1.6.0:

{
  "packageRules": [
    {
      "packageNames": ["angular"],
      "allowedVersions": "<=1.5"
    }
  ]
}

This field also supports Regular Expressions if they begin and end with /. For example, the following will enforce that only 3 or 4-section versions are supported, without any prefixes:

{
  "packageRules": [
    {
      "packageNames": ["com.thoughtworks.xstream:xstream"],
      "allowedVersions": "/^[0-9]+\\.[0-9]+\\.[0-9]+(\\.[0-9]+)?$/"
    }
  ]
}

This field also supports a special negated regex syntax for ignoring certain versions. Use the syntax !/ / like the following:

{
  "packageRules": [
    {
      "packageNames": ["chalk"],
      "allowedVersions": "!/java$/"
    }
  ]
}

depTypeList

List of depTypes to match (e.g. [peerDependencies]). Valid only within packageRules object

NameValue
typearray
subTypestring
parentpackageRules
mergeabletrue

Use this field if you want to limit a packageRule to certain depType values. Invalid if used outside of a packageRule.

excludePackageNames

Package names to exclude. Valid only within packageRules object

NameValue
typearray
subTypestring
parentpackageRules
mergeabletrue

Important: Do not mix this up with the option ignoreDeps. Use ignoreDeps instead if all you want to do is have a list of package names for Renovate to ignore.

Use excludePackageNames if you want to have one or more exact name matches excluded in your package rule. See also packageNames.

{
  "packageRules": [
    {
      "packagePatterns": ["^eslint"],
      "excludePackageNames": ["eslint-foo"]
    }
  ]
}

The above will match all package names starting with eslint but exclude the specific package eslint-foo.

excludePackagePatterns

Package name patterns to exclude. Valid only within packageRules object.

NameValue
typearray
subTypestring
formatregex
parentpackageRules
mergeabletrue

Use this field if you want to have one or more package name patterns excluded in your package rule. See also packagePatterns.

{
  "packageRules": [
    {
      "packagePatterns": ["^eslint"],
      "excludePackagePatterns": ["^eslint-foo"]
    }
  ]
}

The above will match all package names starting with eslint but exclude ones starting with eslint-foo.

languages

List of languages to match (e.g. ["python"]). Valid only within packageRules object

NameValue
typearray
subTypestring
parentpackageRules
mergeabletrue

Use this field to restrict rules to a particular language. e.g.

{
  "packageRules": [
    {
      "packageNames": ["request"],
      "languages": ["python"],
      "enabled": false
    }
  ]
}

baseBranchList

List of branches to match (e.g. ["master"]). Valid only within packageRules object

NameValue
typearray
subTypestring
parentpackageRules
mergeabletrue

Use this field to restrict rules to a particular branch. e.g.

{
  "packageRules": [
    {
      "baseBranchList": ["master"],
      "excludePackagePatterns": ["^eslint"],
      "enabled": false
    }
  ]
}

managers

List of package managers to match (e.g. ["pipenv"]). Valid only within packageRules object

NameValue
typearray
subTypestring
parentpackageRules
mergeabletrue

Use this field to restrict rules to a particular package manager. e.g.

{
  "packageRules": [
    {
      "packageNames": ["node"],
      "managers": ["dockerfile"],
      "enabled": false
    }
  ]
}

datasources

List of datasources to match (e.g. ["orb"]). Valid only within packageRules object

NameValue
typearray
subTypestring
parentpackageRules
mergeabletrue

Use this field to restrict rules to a particular datasource. e.g.

{
  "packageRules": [
    {
      "datasources": ["orb"],
      "labels": ["circleci-orb!!"]
    }
  ]
}

matchCurrentVersion

A version or version range to match against the current version of a package. Valid only within packageRules object

NameValue
typestring
parentpackageRules
mergeabletrue
defaultnull

matchCurrentVersion can be an exact semver version or a semver range.

packageNames

Package names to match. Valid only within packageRules object

NameValue
typearray
subTypestring
parentpackageRules
mergeabletrue

Use this field if you want to have one or more exact name matches in your package rule. See also excludedPackageNames.

{
  "packageRules": [
    {
      "packageNames": ["angular"],
      "rangeStrategy": "pin"
    }
  ]
}

The above will configure rangeStrategy to pin only for the package angular.

packagePatterns

Package name patterns to match. Valid only within packageRules object.

NameValue
typearray
subTypestring
formatregex
parentpackageRules
mergeabletrue

Use this field if you want to have one or more package names patterns in your package rule. See also excludePackagePatterns.

{
  "packageRules": [
    {
      "packagePatterns": ["^angular"],
      "rangeStrategy": "replace"
    }
  ]
}

The above will configure rangeStrategy to replace for any package starting with angular.

paths

List of strings or glob patterns to match against package files. Applicable inside packageRules only

NameValue
typearray
subTypestring
parentpackageRules

Renovate will match paths against both a partial string match or a minimatch glob pattern. If you want to avoid the partial string matching so that only glob matching is performed, wrap your string in +(...) like so:

  "paths": ["+(package.json)"],

The above will match only the root package.json, whereas the following would match any package.json in any subdirectory too:

  "paths": ["package.json"],

sourceUrlPrefixes

A list of source URL prefixes to match against, commonly used for grouping of monorepos or packages from the same organization.

NameValue
typearray
subTypestring
parentpackageRules
mergeabletrue

Here's an example of where you use this to group together all packages from the Vue monorepo:

{
  "packageRules": [
    {
      "sourceUrlPrefixes": ["https://github.com/vuejs/vue"],
      "groupName": "Vue monorepo packages"
    }
  ]
}

Here's an example of where you use this to group together all packages from the renovatebot github org:

{
  "packageRules": [
    {
      "sourceUrlPrefixes": ["https://github.com/renovatebot/"],
      "groupName": "All renovate packages"
    }
  ]
}

updateTypes

Update types to match against (major, minor, pin, etc). Valid only within packageRules object.

NameValue
typearray
subTypestring
allowedValuesmajor,minor,patch,pin,digest,lockFileMaintenance,rollback,bump
parentpackageRules
mergeabletrue

Use this field to match rules against types of updates. For example to apply a special label for Major updates:

{
  "packageRules": [
    {
      "updateTypes": ["major"],
      "labels": ["UPDATE-MAJOR"]
    }
  ]
}

patch

Configuration to apply when an update type is patch. Only applies if separateMinorPatch is set to true

NameValue
typeobject
mergeabletrue

Add to this object if you wish to define rules that apply only to patch updates. See also major and minor configuration options.

php

Configuration object for php

NameValue
typeobject
mergeabletrue

Warning: PHP Composer support is in alpha stage so you probably only want to run this if you are helping get it feature-ready.

pin

Configuration to apply when an update type is pin.

NameValue
typeobject
mergeabletrue

Add to this object if you wish to define rules that apply only to PRs that pin dependencies.

pinDigests

Whether to add digests to Dockerfile source images

NameValue
typeboolean
defaultfalse

If enabled Renovate will pin docker images by means of their sha256 digest and not only by tag so that they are immutable.

postUpdateOptions

Enable post-update options to be run after package/artifact updating

NameValue
typearray
allowedValuesgomodTidy,npmDedupe,yarnDedupeFewer,yarnDedupeHighest
mergeabletrue
  • gomodTidy: Run go mod tidy after Go module updates
  • npmDedupe: Run npm dedupe after package-lock.json updates
  • yarnDedupeFewer: Run yarn-deduplicate --strategy fewer after yarn.lock updates
  • yarnDedupeHighest: Run yarn-deduplicate --strategy highest after yarn.lock updates

postUpgradeTasks

Post-upgrade tasks that are executed before a commit is made by Renovate

NameValue
typeobject

Post-upgrade tasks are commands that are executed by Renovate after a dependency has been updated but before the commit is created. The intention is to run any additional command line tools that would modify existing files or generate new files when a dependency changes.

This is only available on Renovate instances that have a trustLevel of 'high'. Each command must match at least one of the patterns defined in allowedPostUpgradeTasks in order to be executed. If the list of allowed tasks is empty then no tasks will be executed.

e.g.

{
  "postUpgradeTasks": {
    "commands": ["tslint --fix"],
    "fileFilters": ["yarn.lock", "**/*.js"]
  }
}

The postUpdateTasks configuration consists of two fields:

commands

A list of post-upgrade commands that are executed before a commit is made by Renovate

NameValue
typearray
subTypestring
parentpostUpgradeTasks

A list of commands that are executed after Renovate has updated a dependency but before the commit it made

fileFilters

Files that match these glob patterns will be committed if they are present after running a post-upgrade task

NameValue
typearray
subTypestring
parentpostUpgradeTasks

A list of glob-style matchers that determine which files will be included in the final commit made by Renovate

prBodyColumns

List of columns to use in PR bodies

NameValue
typearray
subTypestring

Use this array to provide a list of column names you wish to include in the PR tables.

For example, if you wish to add the package file name to the table, you would add this to your config:

{
  "prBodyColumns": [
    "Package",
    "Update",
    "Type",
    "New value",
    "Package file",
    "References"
  ]
}

Note: "Package file" is predefined in the default prBodyDefinitions object so does not require a definition before it can be used.

prBodyDefinitions

Table column definitions for use in PR tables

NameValue
typeobject
freeChoicetrue
mergeabletrue

You can configure this object to either (a) modify the template for an existing table column in PR bodies, or (b) you wish to add a definition for a new/additional column.

Here is an example of modifying the default value for the "Package" column to put it inside a <code></code> block:

{
  "prBodyDefinitions": {
    "Package": "`{{{depName}}}`"
  }
}

Here is an example of adding a custom "Sourcegraph" column definition:

{
  "prBodyDefinitions": {
    "Sourcegraph": "[![code search for \"{{{depName}}}\"](https://sourcegraph.com/search/badge?q=repo:%5Egithub%5C.com/{{{repository}}}%24+case:yes+-file:package%28-lock%29%3F%5C.json+{{{depName}}}&label=matches)](https://sourcegraph.com/search?q=repo:%5Egithub%5C.com/{{{repository}}}%24+case:yes+-file:package%28-lock%29%3F%5C.json+{{{depName}}})"
  },
  "prBodyColumns": [
    "Package",
    "Update",
    "New value",
    "References",
    "Sourcegraph"
  ]
}

Note: Columns must also be included in the prBodyColumns array in order to be used, so that's why it's included above in the example.

prBodyNotes

List of additional notes/templates to be included in the Pull Request bodies.

NameValue
typearray
subTypestring
mergeabletrue

Use this field to add custom content inside PR bodies, including conditionally.

e.g. if you wish to add an extra Warning to major updates:

{
  "prBodyNotes": ["{{#if isMajor}}:warning: MAJOR MAJOR MAJOR :warning:{{/if}}"]
}

prConcurrentLimit

Limit to a maximum of x concurrent branches/PRs. 0 (default) means no limit.

NameValue
typeinteger
default0

This setting - if enabled - limits Renovate to a maximum of x concurrent PRs open at any time.

Note that this limit is enforced on a per-repository basis.

prCreation

When to create the PR for a branch.

NameValue
typestring
allowedValuesimmediate,not-pending,status-success,approval
default"immediate"

This setting tells Renovate when you would like it to raise PRs:

  • immediate (default): Renovate will create PRs immediately after creating the corresponding branch
  • not-pending: Renovate will wait until status checks have completed (passed or failed) before raising the PR
  • status-success: Renovate won't raise PRs unless tests pass

Renovate defaults to immediate but some like to change to not-pending. If you configure to immediate, it means you will usually get GitHub notifications that a new PR is available but if you view it immediately then it will still have "pending" tests so you can't take any action. With not-pending, it means that when you receive the PR notification, you can see if it passed or failed and take action immediately. Therefore you can customise this setting if you wish to be notified a little later in order to reduce "noise".

prFooter

Any text added here will be placed last in the PR body, with a divider separator before it.

NameValue
typestring
default"This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate)."

prHeader

Any text added here will be placed first in the PR body.

NameValue
typestring
defaultnull

prHourlyLimit

Rate limit PRs to maximum x created per hour. 0 (default) means no limit.

NameValue
typeinteger
default0

This setting - if enabled - helps slow down Renovate, particularly during the onboarding phase. What may happen without this setting is:

  1. Onboarding PR is created
  2. User merges onboarding PR to activate Renovate
  3. Renovate creates a "Pin Dependencies" PR (if necessary)
  4. User merges Pin PR
  5. Renovate then creates every single upgrade PR necessary - potentially dozens

The above can result in swamping CI systems, as well as a lot of retesting if branches need to be rebased every time one is merged. Instead, if prHourlyLimit is configure to a value like 1 or 2, it will mean that Renovate creates at most that many new PRs within each hourly period (:00-:59). So the project should still result in all PRs created perhaps within the first 24 hours maximum, but at a rate that may allow users to merge them once they pass tests. It does not place a limit on the number of concurrently open PRs - only on the rate they are created.

Note that this limit is enforced on a per-repository basis.

prNotPendingHours

Timeout in hours for when prCreation=not-pending

NameValue
typeinteger
default25

If you configure prCreation=not-pending, then Renovate will wait until tests are non-pending (all pass or at least one fails) before creating PRs. However there are cases where PRs may remain in pending state forever, e.g. absence of tests or status checks that are configure to pending indefinitely. Therefore we configure an upper limit - default 24 hours - for how long we wait until creating a PR. Note also this is the same length of time as for Renovate's own unpublishSafe status check for npm.

prPriority

Set sorting priority for PR creation. PRs with higher priority are created first, negative priority last.

NameValue
typeinteger
default0

Sometimes Renovate needs to rate limit its creation of PRs, e.g. hourly or concurrent PR limits. In such cases it sorts/prioritizes by default based on the update type (e.g. patches raised before minor, minor before major). If you have dependencies that are more or less important than others then you can use the prPriority field for PR sorting. The default value is 0, so therefore setting a negative value will make dependencies sort last, while higher values sort first.

Here's an example of how you would define PR priority so that devDependencies are raised last and react is raised first:

{
  "packageRules": [
    {
      "depTypeList": ["devDependencies"],
      "prPriority": -1
    },
    {
      "packageNames": ["react"],
      "prPriority": 5
    }
  ]
}

prTitle

Pull Request title template (deprecated). Now uses commitMessage.

NameValue
typestring

The PR title is important for some of Renovate's matching algorithms (e.g. determining whether to recreate a PR or not) so ideally don't modify it much.

pruneStaleBranches

Enable or disable pruning of stale branches

NameValue
typeboolean
defaulttrue

Configure to false to disable deleting orphan branches and autoclosing PRs. Defaults to true.

python

Configuration object for python

NameValue
typeobject
mergeabletrue

Currently the only Python package manager is pip - specifically for requirements.txt and requirequirements.pip files - so adding any config to this python object is essentially the same as adding it to the pip_requirements object instead.

rangeStrategy

Policy for how to modify/update existing ranges.

NameValue
typestring
default"replace"
allowedValuesauto,pin,bump,replace,widen,update-lockfile

Behaviour:

  • auto = Renovate decides (this will be done on a manager-by-manager basis)
  • pin = convert ranges to exact versions, e.g. ^1.0.0 -> 1.1.0
  • bump = e.g. bump the range even if the new version satisifies the existing range, e.g. ^1.0.0 -> ^1.1.0
  • replace = Replace the range with a newer one if the new version falls outside it, e.g. ^1.0.0 -> ^2.0.0
  • widen = Widen the range with newer one, e.g. ^1.0.0 -> ^1.0.0 || ^2.0.0
  • update-lockfile = Update the lock file when in-range updates are available, otherwise replace for updates out of range. Works only for npm and yarn so far.

Renovate's "auto" strategy works like this for npm:

  1. Always pin devDependencies
  2. Pin dependencies if we detect that it's an app and not a library
  3. Widen peerDependencies
  4. If an existing range already ends with an "or" operator - e.g. "^1.0.0 || ^2.0.0" - then Renovate will widen it, e.g. making it into "^1.0.0 || ^2.0.0 || ^3.0.0".
  5. Otherwise, replace the range. e.g. "^2.0.0" would be replaced by "^3.0.0"

bump

By default, Renovate assumes that if you are using ranges then it's because you want them to be wide/open. As such, Renovate won't deliberately "narrow" any range by increasing the semver value inside.

For example, if your package.json specifies a value for left-pad of ^1.0.0 and the latest version on npmjs is 1.2.0, then Renovate won't change anything because 1.2.0 satisfies the range. If instead you'd prefer to be updated to ^1.2.0 in cases like this, then configure rangeStrategy to bump in your Renovate config.

This feature supports simple caret (^) and tilde (~) ranges only, like ^1.0.0 and ~1.0.0.

rebaseLabel

Label to use to request the bot to rebase a PR manually

NameValue
typestring
default"rebase"

On supported platforms it is possible to add a label to a PR to manually request Renovate to recreate/rebase it. By default this label is "rebase" however you can configure it to anything you want by changing this rebaseLabel field.

rebaseWhen

Control when Renovate decides to rebase an existing branch

NameValue
typestring
allowedValuesauto,never,conflicted,behind-base-branch
default"auto"

Possible values and meanings:

  • auto: Renovate will autodetect the best setting. Defaults to conflicted unless the repository has a setting requiring PRs to be up to date with the base branch.
  • never: Renovate will never rebase the branch.
  • conflicted: Renovate will rebase only if the branch is conflicted.
  • behind-base-branch: Renovate will rebase whenever the branch falls 1 or more commit behind its base branch.

Note: this field replaces the previous fields of rebaseConflictedPrs and rebaseStalePrs.

recreateClosed

Recreate PRs even if same ones were closed previously

NameValue
typeboolean
defaultfalse

By default, Renovate will detect if it has proposed an update to a project before and not propose the same one again. For example the Webpack 3.x case described above. This field lets you customise this behaviour down to a per-package level. For example we override it to true in the following cases where branch names and PR titles need to be reused:

  • Package groups
  • When pinning versions
  • Lock file maintenance

Typically you shouldn't need to modify this setting.

regexManagers

Custom managers using regex matching.

NameValue
typearray
subTypeobject
mergeabletrue

regexManagers entries are used to configure the regex Manager in Renovate.

Users can define custom managers for cases such as:

  • Proprietary file formats or conventions
  • Popular file formats not yet supported as a manager by Renovate

The custom manager concept is based on using Regular Expression named capture groups. For the fields datasource, depName and currentValue, it's mandatory to have either a named capture group matching them (e.g. (?<depName>.*)) or to configure it's corresponding template (e.g. depNameTemplate). It's not recommended to do both, due to the potential for confusion. It is recommended to also include versioning however if it is missing then it will default to semver.

For more details and examples, see the documentation page the for the regex manager here. For template fields, use the triple brace {{{ }}} notation to avoid handlebars escaping any special characters.

matchStrings

Regex capture rule to use. Valid only within regexManagers object.

NameValue
typearray
subTypestring
formatregex
parentregexManagers

matchStrings should each be a valid regular expression, optionally with named capture groups. Currently only a length of one matchString is supported.

Example:

{
  "matchStrings": [
    "ENV .*?_VERSION=(?<currentValue>.*) # (?<datasource>.*?)/(?<depName>.*?)\\s"
  ]
}

depNameTemplate

Optional depName for extracted dependencies. Valid only within regexManagers object.

NameValue
typestring
parentregexManagers
defaultnull

If depName cannot be captured with a named capture group in matchString then it can be defined manually using this field. It will be compiled using handlebars and the regex groups result.

lookupNameTemplate

Optional lookupName for extracted dependencies, else defaults to depName value. Valid only within regexManagers object.

NameValue
typestring
parentregexManagers
defaultnull

lookupName is used for looking up dependency versions. It will be compiled using handlebars and the regex groups result. It will default to the value of depName if left unconfigured/undefined.

datasourceTemplate

Optional datasource for extracted dependencies. Valid only within regexManagers object.

NameValue
typestring
parentregexManagers
defaultnull

If the datasource for a dependency is not captured with a named group then it can be defined in config using this field. It will be compiled using handlebars and the regex groups result.

versioningTemplate

Optional versioning for extracted dependencies. Valid only within regexManagers object.

NameValue
typestring
parentregexManagers
defaultnull

If the versioning for a dependency is not captured with a named group then it can be defined in config using this field. It will be compiled using handlebars and the regex groups result.

registryUrls

List of URLs to try for dependency lookup. Package manager-specific

NameValue
typearray
subTypestring

This is only necessary in case you need to manually configure a registry URL to use for datasource lookups. Applies to PyPI (pip) only for now. Supports only one URL for now but is defined as a list for forward compatibility.

requiredStatusChecks

List of status checks that must pass before automerging. Set to null to enable automerging without tests.

NameValue
typearray
subTypestring

This is a future feature that is partially implemented. Currently Renovate's default behaviour is to only automerge if every status check has succeeded. In future, this might be configurable to allow certain status checks to be ignored.

You can still override this to null today if your repository doesn't support status checks (i.e. no tests) but you still want to use Renovate anyway.

respectLatest

Ignore versions newer than npm "latest" version

NameValue
typeboolean
defaulttrue

Similar to ignoreUnstable, this option controls whether to update to versions that are greater than the version tagged as latest in the repository. By default, renovate will update to a version greater than latest only if the current version is itself past latest.

reviewers

Requested reviewers for Pull Requests (either username or email address depending on the platform)

NameValue
typearray
subTypestring

Must be valid usernames. If on GitHub and assigning a team to review, use the prefix team:, e.g. provide a value like team:someteam.

reviewersFromCodeOwners

Determine reviewers based on configured code owners and changes in PR.

NameValue
typeboolean
defaultfalse

If enabled Renovate will try to determine PR reviewers by matching rules defined in a CODEOWNERS file against the changes in the PR.

See GitHub or GitLab documentation for details on syntax and possible file locations.

reviewersSampleSize

Take a random sample of given size from reviewers.

NameValue
typeinteger

Take a random sample of given size from reviewers.

rollbackPrs

Create PRs to roll back versions if the current version is not found in the registry

NameValue
typeboolean
defaultfalse

Configure this to false either globally, per-language, or per-package if you want to disable Renovate's behaviour of generating rollback PRs when it can't find the current version on the registry anymore.

ruby

Configuration object for ruby language

NameValue
typeobject
mergeabletrue

rust

Configuration option for Rust package management.

NameValue
typeobject
mergeabletrue

schedule

Times of day/week to limit branch creation to

NameValue
typearray
subTypestring

The schedule option allows you to define times of week or month for Renovate updates. Running Renovate around the clock may seem too "noisy" for some projects and therefore schedule is a good way to reduce the noise by reducing the timeframe in which Renovate will operate on your repository.

The default value for schedule is "at any time", which is functionally the same as declaring a null schedule. i.e. Renovate will run on the repository around the clock.

The easiest way to define a schedule is to use a preset if one of them fits your requirements. See Schedule presets for details and feel free to request a new one in the source repository if you think others would benefit from it too.

Otherwise, here are some text schedules that are known to work:

every weekend
before 5:00am
after 10pm and before 5:00am
after 10pm and before 5am every weekday
on friday and saturday

One example might be that you don't want Renovate to run during your typical business hours, so that your build machines don't get clogged up testing package.json updates. You could then configure a schedule like this at the repository level:

{
  "schedule": ["after 10pm and before 5am on every weekday", "every weekend"]
}

This would mean that Renovate can run for 7 hours each night plus all the time on weekends.

This scheduling feature can also be particularly useful for "noisy" packages that are updated frequently, such as aws-sdk.

To restrict aws-sdk to only monthly updates, you could add this package rule:

{
  "packageRules": [
    {
      "packageNames": ["aws-sdk"],
      "extends": ["schedule:monthly"]
    }
  ]
}

Technical details: We mostly rely on the text parsing of the library later but only its concepts of "days", "time_before", and "time_after" (Renovate does not support scheduled minutes or "at an exact time" granularity).

semanticCommitScope

Commit scope to use if semantic commits are enabled

NameValue
typestring
default"deps"

By default you will see angular-style commit prefixes like "chore(deps):". If you wish to change it to something else like "package" then it will look like "chore(package):". You can also use parentDir or baseDir to namespace your commits for monorepos e.g. "{{parentDir}}".

semanticCommitType

Commit type to use if semantic commits is enabled

NameValue
typestring
default"chore"

By default you will see angular-style commit prefixes like "chore(deps):". If you wish to change it to something else like "ci" then it will look like "ci(deps):".

semanticCommits

Enable semantic commit prefixes for commits and PR titles

NameValue
typeboolean
defaultnull

If you are using a semantic prefix for your commits, then you will want to enable this setting. Although it's configurable to a package-level, it makes most sense to configure it at a repository level. If configured to true, then the semanticCommitScope and semanticCommitType fields will be used for each commit message and PR title.

However, please note that Renovate will autodetect if your repository is already using semantic commits or not and follow suit, so you only really need to configure this if you wish to override Renovate's autodetected setting.

separateMajorMinor

If set to false, it will upgrade dependencies to latest release only, and not separate major/minor branches

NameValue
typeboolean
defaulttrue

Renovate's default behaviour is to create a separate branch/PR if both minor and major version updates exist. For example, if you were using Webpack 2.0.0 and versions 2.1.0 and 3.0.0 were both available, then Renovate would create two PRs so that you have the choice whether to apply the minor update to 2.x or the major update of 3.x. If you were to apply the minor update then Renovate would keep updating the 3.x branch for you as well, e.g. if Webpack 3.0.1 or 3.1.0 were released. If instead you applied the 3.0.0 update then Renovate would clean up the unneeded 2.x branch for you on the next run.

It is recommended that you leave this setting to true, because of the polite way that Renovate handles this. For example, let's say in the above example that you decided you wouldn't update to Webpack 3 for a long time and don't want to build/test every time a new 3.x version arrives. In that case, simply close the "Update Webpack to version 3.x" PR and it won't be recreated again even if subsequent Webpack 3.x versions are released. You can continue with Webpack 2.x for as long as you want and receive any updates/patches that are made for it. Then eventually when you do want to update to Webpack 3.x you can make that update to package.json yourself and commit it to master once it's tested. After that, Renovate will resume providing you updates to 3.x again! i.e. if you close a major upgrade PR then it won't come back again, but once you make the major upgrade yourself then Renovate will resume providing you with minor or patch updates.

separateMinorPatch

If set to true, it will separate minor and patch updates into separate branches

NameValue
typeboolean
defaultfalse

By default, Renovate won't distinguish between "patch" (e.g. 1.0.x) and "minor" (e.g. 1.x.0) releases - it groups them together. E.g., if you are running version 1.0.0 of a package and both versions 1.0.1 and 1.1.0 are available then Renovate will raise a single PR for version 1.1.0. If you wish to distinguish between patch and minor upgrades, for example if you wish to automerge patch but not minor, then you can configured this option to true.

separateMultipleMajor

If set to true, PRs will be raised separately for each available major upgrade version

NameValue
typeboolean
defaultfalse

Configure this to true if you wish to receive one PR for every separate major version upgrade of a dependency. e.g. if you are on webpack@v1 currently then default behaviour is a PR for upgrading to webpack@v3 and not for webpack@v2. If this setting is true then you would get one PR for webpack@v2 and one for webpack@v3.

stabilityDays

Number of days required before a new release is considered to be stabilized.

NameValue
typeinteger
default0

If this is configured to a non-zero value, and an update has a release date/timestamp available, then Renovate will check if the configured "stability days" have elapsed. If the days since the release is less than the configured stability days then a "pending" status check will be added to the branch. If enough days have passed then a passing status check will be added.

There are a couple of uses for this:

Suppress branch/PR creation for X days

If you combine stabilityDays=3 and prCreation="not-pending" then Renovate will hold back from creating branches until 3 or more days have elapsed since the version was released. It's recommended that you enable dependencyDashboard=true so you don't lose visibility of these pending PRs.

Await X days before Automerging

If you have both automerge as well as stabilityDays enabled, it means that PRs will be created immediately but automerging will be delayed until X days have passed. This works because Renovate will add a "renovate/stability-days" pending status check to each branch/PR and that pending check will prevent the branch going green to automerge.

statusCheckVerify

Set a verify status check for all PRs

NameValue
typeboolean
defaultfalse

This feature is added for people migrating from alternative services who are used to seeing a "verify" status check on PRs. If you'd like to use this then go ahead, but otherwise it's more secure to look for Renovate's GPG Verified Commits instead, because those cannot be spoofed by any other person or service (unlike status checks).

supportPolicy

Dependency support policy, e.g. used for LTS vs non-LTS etc (node-only)

NameValue
typearray
subTypestring

Language support is limited to those listed below:

suppressNotifications

Options to suppress various types of warnings and other notifications

NameValue
typearray
subTypestring
allowedValuesprIgnoreNotification,branchAutomergeFailure,lockFileErrors,artifactErrors,deprecationWarningIssues,onboardingClose
mergeabletrue

Use this field to suppress various types of warnings and other notifications from Renovate. Example:

{
  "suppressNotifications": ["prIgnoreNotification"]
}

The above config will suppress the comment which is added to a PR whenever you close a PR unmerged.

timezone

IANA Time Zone

NameValue
typestring
defaultnull

It is only recommended to configure this field if you wish to use the schedules feature and want to write them in your local timezone. Please see the above link for valid timezone names.

unicodeEmoji

Enable or disable Unicode emoji

NameValue
typeboolean
defaulttrue

If enabled emoji shortcodes (:warning:) are replaced with their unicode equivalents (⚠️)

unpublishSafe

Set a status check for unpublish-safe upgrades

NameValue
typeboolean
defaultfalse

It is not known by many that npm package authors and collaborators can delete an npm version if it is less than 24 hours old. e.g. version 1.0.0 might exist, then version 1.1.0 is released, and then version 1.1.0 might get deleted hours later. This means that version 1.1.0 essentially "disappears" and 1.0.0 returns to being the "latest". If you have installed 1.1.0 during that time then your build is essentially broken.

Enabling unpublishSafe will add a renovate/unpublish-safe status check with value pending to every branch to warn you about this possibility. It can be handy when used with the prCreation = not-pending configuration option - that way you won't get the PR raised until after a patch is 24 hours old or more.

updateLockFiles

Set to false to disable lock file updating

NameValue
typeboolean
defaulttrue

updateNotScheduled

Whether to update (but not create) branches when not scheduled

NameValue
typeboolean
defaulttrue

When schedules are in use, it generally means "no updates". However there are cases where updates might be desirable - e.g. if you have configured prCreation=not-pending, or you have rebaseStale=true and master branch is updated so you want Renovate PRs to be rebased.

This defaults to true, meaning that Renovate will perform certain "desirable" updates to existing PRs even when outside of schedule. If you wish to disable all updates outside of scheduled hours then configure this field to false.

versioning

versioning to use for filtering and comparisons

NameValue
typestring
allowedValuescargo,composer,docker,git,gradle,hashicorp,hex,ivy,loose,maven,node,npm,nuget,pep440,poetry,regex,ruby,semver,swift
default"semver"

Usually, each language or package manager has a specific type of "versioning". e.g. JavaScript uses npm's semver implementation, Python uses pep440, etc. At Renovate we have also implemented some of our own, such as "docker" to address the most common way people tag versions using Docker, and "loose" as a fallback that tries semver first but otherwise just does its best to sort and compare.

By exposing versioning to config, it allows you to override the default versioning for a package manager if you really need. In most cases it would not be recommended, but there are some cases such as Docker or Gradle where versioning is not strictly defined and you may need to specify the versioning type per-package.

vulnerabilityAlerts

Config to apply when a PR is necessary due to vulnerability of existing package version.

NameValue
typeobject

Use this object to customise PRs that are raised when vulnerability alerts are detected (GitHub-only). For example, to configure custom labels and assignees:

{
  "vulnerabilityAlerts": {
    "labels": ["security"],
    "assignees": ["@rarkins"]
  }
}

To disable vulnerability alerts completely, configure like this:

{
  "vulnerabilityAlerts": {
    "enabled": false
  }
}

yarnrc

String copy of yarnrc file. Use \n instead of line breaks

NameValue
typestring
defaultnull