Skip to content

Commit a61dc54

Browse files
chore(config): migrate config renovate.json5
1 parent 7d3d1e2 commit a61dc54

File tree

1 file changed

+40
-65
lines changed

1 file changed

+40
-65
lines changed

renovate.json5

Lines changed: 40 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,48 @@
11
{
2-
"extends": [
3-
// Default base configuration for all languages.
4-
// https://docs.renovatebot.com/presets-config/#configbase
5-
"config:base",
6-
// Group various lint packages together. | https://docs.renovatebot.com/presets-group/#grouplinters
7-
"group:linters",
8-
// Pin GitHub Action digests. | https://docs.renovatebot.com/presets-helpers/#helperspingithubactiondigests
9-
"helpers:pinGitHubActionDigests",
10-
// Separate each Major version of dependencies into individual PRs. | https://docs.renovatebot.com/presets-default/#separatemultiplemajorreleases
11-
":separateMultipleMajorReleases",
12-
// Upgrade to unstable versions only if the existing version is unstable. | https://docs.renovatebot.com/presets-default/#ignoreunstable
13-
":ignoreUnstable",
14-
// Use semantic prefixes for commit messages and PR titles. | https://docs.renovatebot.com/presets-default/#semanticcommits
15-
":semanticCommits",
16-
// If Renovate detects semantic commits, it will use semantic
17-
// commit type `fix` for dependencies and `chore` for all others. | https://docs.renovatebot.com/presets-default/#semanticprefixfixdepschoreothers
18-
":semanticPrefixFixDepsChoreOthers",
19-
// Update `_VERSION` environment variables in GitHub Action files. | https://docs.renovatebot.com/presets-regexManagers/#regexmanagersgithubactionsversions
20-
"regexManagers:githubActionsVersions",
21-
// Preserve (but continue to upgrade) any existing SemVer ranges. | https://docs.renovatebot.com/presets-default/#preservesemverranges
22-
":preserveSemverRanges",
2+
extends: [
3+
'config:recommended',
4+
'group:linters',
5+
'helpers:pinGitHubActionDigests',
6+
':separateMultipleMajorReleases',
7+
':ignoreUnstable',
8+
':semanticCommits',
9+
':semanticPrefixFixDepsChoreOthers',
10+
'regexManagers:githubActionsVersions',
11+
':preserveSemverRanges',
2312
],
24-
25-
// Dependency Dashboard issue customization. | https://docs.renovatebot.com/configuration-options/#dependencydashboard
26-
"dependencyDashboardTitle": "Renovate Dependency Dashboard",
27-
"dependencyDashboardLabels": ["auto-update"],
28-
"dependencyDashboardHeader": "This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more.<br>Renovate logs for debug [here](https://developer.mend.io/{{platform}}/{{repository}}).",
29-
// Wait at least 3 days for possible fixes before creating a branch/PR. | https://docs.renovatebot.com/configuration-options/#minimumreleaseage
30-
"minimumReleaseAge": "3 days",
31-
// Create PRs to roll back versions
32-
// if the current version is not found in the registry. | https://docs.renovatebot.com/configuration-options/#rollbackprs
33-
"rollbackPrs": true,
34-
// All matched addLabels strings will be attached to the PR. | https://docs.renovatebot.com/configuration-options/#addlabels
35-
"addLabels": [
36-
"auto-update",
13+
dependencyDashboardTitle: 'Renovate Dependency Dashboard',
14+
dependencyDashboardLabels: [
15+
'auto-update',
3716
],
38-
// Sometimes you need to change your Renovate configuration.
39-
// To help with this, Renovate will create config migration pull requests. | https://docs.renovatebot.com/configuration-options/#configmigration
40-
"configMigration": true,
41-
// Renovate will wait until status checks have been completed
42-
// (passed or failed) before raising the PR." | https://docs.renovatebot.com/configuration-options/#prcreation
43-
"prCreation": "not-pending",
44-
45-
// Terraform manager custom settings | https://docs.renovatebot.com/modules/manager/terraform/
46-
"terraform": {
47-
"ignorePaths": [
48-
"**/examples/**",
17+
dependencyDashboardHeader: 'This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more.<br>Renovate logs for debug [here](https://developer.mend.io/{{platform}}/{{repository}}).',
18+
minimumReleaseAge: '3 days',
19+
rollbackPrs: true,
20+
addLabels: [
21+
'auto-update',
22+
],
23+
configMigration: true,
24+
prCreation: 'not-pending',
25+
terraform: {
26+
ignorePaths: [
27+
'**/examples/**',
4928
],
50-
"pinDigests": true, // Make versions idempotent
29+
pinDigests: true,
5130
},
52-
53-
// Lowercase PR- and commit titles.
54-
"commitMessageLowerCase": "never",
55-
56-
// Rate limit PRs to maximum x created per hour. 0 means no limit.
57-
"prHourlyLimit": 0,
58-
59-
"regexManagers": [
31+
commitMessageLowerCase: 'never',
32+
prHourlyLimit: 0,
33+
customManagers: [
6034
{
61-
"fileMatch": ["\\.tf$", "\\.hcl$"],
62-
"matchStrings": [
63-
// Examples:
64-
// source = "tfr:///terraform-aws-modules/s3-bucket/aws//wrappers?version=1.0.0"
65-
// source = "tfr:///terraform-aws-modules/s3-bucket/aws?version=2.0.0"
66-
"source\\s*=\\s*\"tfr://(?<registryUrl>.*?)/(?<org>.+?)/(?<name>.+?)/(?<cloud>.+?)(?:/.+?)?\\?version=(?<currentValue>.*?)\""
35+
customType: 'regex',
36+
fileMatch: [
37+
'\\.tf$',
38+
'\\.hcl$',
39+
],
40+
matchStrings: [
41+
'source\\s*=\\s*"tfr://(?<registryUrl>.*?)/(?<org>.+?)/(?<name>.+?)/(?<cloud>.+?)(?:/.+?)?\\?version=(?<currentValue>.*?)"',
6742
],
68-
"datasourceTemplate": "terraform-module",
69-
"depNameTemplate": "{{org}}/{{name}}/{{cloud}}",
70-
"packageNameTemplate": "{{org}}/{{name}}/{{cloud}}",
71-
}
72-
]
43+
datasourceTemplate: 'terraform-module',
44+
depNameTemplate: '{{org}}/{{name}}/{{cloud}}',
45+
packageNameTemplate: '{{org}}/{{name}}/{{cloud}}',
46+
},
47+
],
7348
}

0 commit comments

Comments
 (0)