summaryrefslogtreecommitdiffstats
path: root/.github/renovate.json5
diff options
context:
space:
mode:
authorDavid Knaack <davidkna@users.noreply.github.com>2022-10-04 04:45:39 +0200
committerGitHub <noreply@github.com>2022-10-03 22:45:39 -0400
commitc69d371d10b90b6ec1f492658751dccfbf3c99f4 (patch)
treee3367b46bc6ef530242164ecedbda0c8d4b2abc6 /.github/renovate.json5
parent3d0165a82f57c316910f029011d906e9cdf192e5 (diff)
ci: replace dependabot with renovate (#4405)
Diffstat (limited to '.github/renovate.json5')
-rw-r--r--.github/renovate.json576
1 files changed, 76 insertions, 0 deletions
diff --git a/.github/renovate.json5 b/.github/renovate.json5
new file mode 100644
index 000000000..455c7429b
--- /dev/null
+++ b/.github/renovate.json5
@@ -0,0 +1,76 @@
+{
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
+ "extends": [
+ // stripped-down config:base
+ ":prHourlyLimit2",
+ ":prConcurrentLimit10",
+ "group:monorepos",
+ "group:recommended",
+ "workarounds:all",
+ // automerge minor updates
+ ":automergeMinor",
+ ],
+ "labels": ["📦 dependencies"],
+ "semanticCommits": "enabled",
+ "semanticCommitType": "build",
+ "rangeStrategy": "bump",
+ "packageRules": [
+ // group updates to related packages
+ {
+ "groupName": "clap crates",
+ "matchDatasources": ["crate"],
+ "matchPackagePrefixes": ["clap"]
+ },
+ {
+ "groupName": "gitoxide crates",
+ "matchDatasources": ["crate"],
+ "matchPackagePrefixes": ["git"]
+ },
+ {
+ "groupName": "pest crates",
+ "matchDatasources": ["crate"],
+ "matchPackagePrefixes": ["pest"]
+ },
+ {
+ "groupName": "toml crates",
+ "matchDatasources": ["crate"],
+ "matchPackagePrefixes": ["toml"]
+ },
+ {
+ "groupName": "unicode crates",
+ "matchDatasources": ["crate"],
+ "matchPackagePrefixes": ["unicode"]
+ },
+ {
+ "groupName": "dprint plugins",
+ "matchPackagePrefixes": ["dprint"],
+ "extends": ["schedule:weekly"]
+ },
+ {
+ "groupName": "npm",
+ "matchDatasources": ["npm"],
+ "extends": ["schedule:weekly"]
+ },
+ // Update (rust) lockfiles weekly
+ {
+ "matchDatasources": ["crate"],
+ "lockFileMaintenance": {
+ "enabled": true,
+ "extends": ["schedule:weekly"]
+ }
+ }
+ ],
+ // custom regex update managers
+ "regexManagers": [
+ {
+ "fileMatch": ["(^|\\/)\\.?dprint.json"],
+ "matchStrings": ["\"https://github.com/(?<depName>.+)/releases/download/(?<currentValue>.+)/plugin.wasm\""],
+ "datasourceTemplate": "github-releases"
+ },
+ {
+ "fileMatch": ["^(workflow-templates|\\.github\\/workflows)\\/[^/]+\\.ya?ml$"],
+ "matchStrings": ["cargo install.*--version (?<currentValue>\\S+).*\\s(?<depName>\\S+)"],
+ "datasourceTemplate": "crate"
+ }
+ ]
+}