Skip to content

Commit

Permalink
ci: set up Renovate (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
qryxip authored Oct 2, 2024
1 parent 1463f80 commit 50f1787
Showing 1 changed file with 90 additions and 0 deletions.
90 changes: 90 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
],
"timezone": "Asia/Tokyo",
"separateMajorMinor": false,
"dependencyDashboardApproval": true,
"packageRules": [
{
"groupName": "major dependencies",
"matchUpdateTypes": [
"major"
],
"dependencyDashboardApproval": false
},
{
"groupName": "major dependencies",
"matchUpdateTypes": [
"minor"
],
"matchCurrentVersion": "/^v?0\\./",
"dependencyDashboardApproval": false
},
{
"groupName": "major dependencies",
"matchUpdateTypes": [
"patch"
],
"matchCurrentVersion": "/^v?0\\.0\\./",
"dependencyDashboardApproval": false
},
{
"groupName": "non-major dependencies",
"matchUpdateTypes": [
"minor"
],
"matchCurrentVersion": "!/^v?0\\./",
"dependencyDashboardApproval": false
},
{
"groupName": "non-major dependencies",
"matchUpdateTypes": [
"patch"
],
"matchCurrentVersion": "!/^v?0\\.0\\./",
"dependencyDashboardApproval": false
},
{
"matchDatasources": [
"github-runners"
],
"matchPackageNames": [
"windows",
"macos",
"ubuntu"
],
"enabled": false
}
],
"cargo": {
"rangeStrategy": "bump"
},
"customManagers": [
{
"customType": "regex",
"fileMatch": [
"^rust-toolchain$"
],
"matchStrings": [
"(?<currentValue>\\d+\\.\\d+\\.\\d+)"
],
"depNameTemplate": "Rust",
"packageNameTemplate": "rust-lang/rust",
"datasourceTemplate": "github-tags"
},
{
"customType": "regex",
"fileMatch": [
"Cargo.toml$"
],
"matchStrings": [
"rust-version = \"(?<currentValue>\\d+\\.\\d+\\.\\d+)\""
],
"depNameTemplate": "Rust",
"packageNameTemplate": "rust-lang/rust",
"datasourceTemplate": "github-tags"
}
]
}

0 comments on commit 50f1787

Please sign in to comment.