Skip to content

Commit 75f3d55

Browse files
authored
chore(renovate): migrate config (#45)
1 parent c6cee17 commit 75f3d55

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

.github/renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": ["local>parca-dev/.github"]
3+
"extends": ["github>parca-dev/.github"]
44
}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ jobs:
2727
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2828

2929
- name: Validate Renovate Config
30-
run: npx -p renovate renovate-config-validator
30+
run: npx -p renovate@latest renovate-config-validator

default.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
},
7979
{
8080
"description": "Group packages from Kubernetes together",
81-
"matchSourceUrls": ["https://github.com/kubernetes/{/,}**"],
81+
"matchSourceUrls": ["https://github.com/kubernetes/**"],
8282
"matchUpdateTypes": ["patch", "minor", "major"],
8383
"matchPackageNames": ["!/ingress-nginx/", "!/minikube/"],
8484
"groupName": "kubernetes"
@@ -112,40 +112,37 @@
112112
"matchUpdateTypes": ["patch", "minor", "major"],
113113
"semanticCommitType": "build"
114114
},
115-
{
116-
"matchFileNames": ["Dockerfile"],
117-
"semanticCommitType": "build"
118-
}
115+
{ "matchFileNames": ["Dockerfile"], "semanticCommitType": "build" }
119116
],
120117
"customManagers": [
121118
{
122119
"description": "Update _VERSION variables in Makefiles",
123120
"customType": "regex",
124-
"fileMatch": ["(^|/)Makefile$"],
121+
"managerFilePatterns": ["/(^|/)Makefile$/"],
125122
"matchStrings": [
126123
"# renovate: datasource=(?<datasource>.+?) depName=(?<depName>.+?)(?: (?:packageName)=(?<packageName>.+?))?(?: versioning=(?<versioning>.+?))?(?: extractVersion=(?<extractVersion>.+?))?\\s[A-Z_]+?_VERSION .?= (?<currentValue>.+?)\\s"
127124
]
128125
},
129126
{
130127
"description": "Update _VERSION variables in shell scripts",
131128
"customType": "regex",
132-
"fileMatch": ["\\.sh$"],
129+
"managerFilePatterns": ["/\\.sh$/"],
133130
"matchStrings": [
134131
"# renovate: datasource=(?<datasource>.+?) depName=(?<depName>.+?)(?: (?:packageName)=(?<packageName>.+?))?(?: versioning=(?<versioning>.+?))?(?: extractVersion=(?<extractVersion>.+?))?\\s[A-Z_]+?_VERSION=('|\")?(?<currentValue>.+?)('|\")?\\s"
135132
]
136133
},
137134
{
138135
"description": "Update Golang in .go-version file",
139136
"customType": "regex",
140-
"fileMatch": ["(^|/)\\.go-version$"],
137+
"managerFilePatterns": ["/(^|/)\\.go-version$/"],
141138
"matchStrings": ["^\\s*(?<currentValue>.+?)\\s*$"],
142139
"depNameTemplate": "golang",
143140
"datasourceTemplate": "golang-version"
144141
},
145142
{
146143
"description": "Update Rust stable version in rust-toolchain.toml",
147144
"customType": "regex",
148-
"fileMatch": ["(^|/)rust-toolchain\\.toml$"],
145+
"managerFilePatterns": ["/(^|/)rust-toolchain\\.toml$/"],
149146
"matchStrings": ["channel\\s*=\\s*('|\")(?<currentValue>.+?)('|\")\\s"],
150147
"depNameTemplate": "rust",
151148
"packageNameTemplate": "rust-lang/rust",

0 commit comments

Comments
 (0)