-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate config .github/renovate.json5
- Loading branch information
1 parent
768ebb3
commit 785a02e
Showing
1 changed file
with
53 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,58 @@ | ||
{ | ||
extends: [ | ||
"config:best-practices", | ||
"schedule:monthly", | ||
// Group updates to linters together in one PR | ||
"group:linters", | ||
], | ||
dependencyDashboard: true, | ||
"labels": ["dependencies"], | ||
lockFileMaintenance: { | ||
enabled: true, | ||
automerge: true | ||
extends: [ | ||
'config:best-practices', | ||
'schedule:monthly', | ||
'group:linters', | ||
], | ||
dependencyDashboard: true, | ||
labels: [ | ||
'dependencies', | ||
], | ||
lockFileMaintenance: { | ||
enabled: true, | ||
automerge: true, | ||
}, | ||
customManagers: [ | ||
{ | ||
customType: 'regex', | ||
fileMatch: [ | ||
'^rust-toolchain\\.toml?$', | ||
], | ||
matchStrings: [ | ||
'channel\\s*=\\s*"(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)"', | ||
], | ||
depNameTemplate: 'rust', | ||
packageNameTemplate: 'rust-lang/rust', | ||
datasourceTemplate: 'github-releases', | ||
}, | ||
{ | ||
customType: 'regex', | ||
fileMatch: [ | ||
'^Justfile$', | ||
], | ||
matchStrings: [ | ||
'".*\\btowncrier==(?<currentValue>.+?)\\b"', | ||
], | ||
depNameTemplate: 'towncrier', | ||
datasourceTemplate: 'pypi', | ||
}, | ||
], | ||
packageRules: [ | ||
{ | ||
matchCategories: [ | ||
'rust', | ||
], | ||
minimumReleaseAge: '3 days', | ||
automerge: true, | ||
}, | ||
{ | ||
groupName: 'pulldown-cmark (grouped)', | ||
matchPackageNames: [ | ||
'/^pulldown-cmark.*/', | ||
], | ||
}, | ||
"customManagers": [ | ||
{ | ||
"customType": "regex", | ||
"fileMatch": ["^rust-toolchain\\.toml?$"], | ||
"matchStrings": [ | ||
"channel\\s*=\\s*\"(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)\"" | ||
], | ||
"depNameTemplate": "rust", | ||
"packageNameTemplate": "rust-lang/rust", | ||
"datasourceTemplate": "github-releases" | ||
}, | ||
{ | ||
"customType": "regex", | ||
"fileMatch": ["^Justfile$"], | ||
"matchStrings": [ | ||
// https://regex101.com/r/vOmY6R/1 | ||
// Matching on word boundaries (\b) around start and end ensures we | ||
// match variations like "towncrier==1.2.3" as well as "pipx run | ||
// towncrier==1.2.3", adding some future proofness. | ||
"\".*\\btowncrier==(?<currentValue>.+?)\\b\"" | ||
], | ||
"depNameTemplate": "towncrier", | ||
"datasourceTemplate": "pypi" | ||
}, | ||
], | ||
packageRules: [ | ||
{ | ||
matchCategories: ["rust"], | ||
minimumReleaseAge: "3 days", | ||
automerge: true | ||
}, | ||
{ | ||
// pulldown-cmark and pulldown-cmark-to-mark must be updated in | ||
// lockstep in case of breaking changes, so it's best to group them | ||
// together. | ||
"matchPackagePatterns": ["^pulldown-cmark.*"], | ||
"groupName": "pulldown-cmark (grouped)" | ||
}, | ||
], | ||
ignorePaths: [ | ||
// Auto-generated by cargo-dist (https://opensource.axo.dev/cargo-dist/) | ||
".github/workflows/release.yml" | ||
] | ||
'.github/workflows/release.yml', | ||
], | ||
} |