Skip to content

Commit e5516ae

Browse files
CAD97epage
authored andcommitted
configure renovate
1 parent 401f77a commit e5516ae

File tree

2 files changed

+31
-24
lines changed

2 files changed

+31
-24
lines changed

.github/renovate.json5

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,41 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"schedule": "every 6 weeks on tuesday",
3+
"extends": [
4+
"config:recommended",
5+
"schedule:weekly",
6+
":automergePatch",
7+
":automergeStableNonMajor",
8+
":combinePatchMinorReleases",
9+
":disableDependencyDashboard",
10+
":maintainLockFilesWeekly",
11+
":separateMajorReleases"
12+
],
13+
"platformCommit": true,
414
"customManagers": [
515
{
616
"customType": "regex",
17+
"description": "Update the minimal supported Rust version in Cargo.toml",
718
"fileMatch": [
8-
"Cargo.toml$"
19+
"(^|/)Cargo\\.toml$"
920
],
1021
"matchStrings": [
11-
"rust-version = \"(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)\""
22+
"(^|\\[package\\])(.|\n)*?($|\n\\s*\\[)", // select package table
23+
"rust-version = \"(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)\"" // select rust-version
1224
],
25+
"matchStringsStrategy": "recursive",
1326
"depNameTemplate": "rust-version",
1427
"packageNameTemplate": "rust-lang/rust",
15-
"datasourceTemplate": "github-releases"
28+
"datasourceTemplate": "github-releases",
29+
"versioningTemplate": "cargo",
30+
"extractVersionTemplate": "^(?<version>\\d+\\.\\d+)" // drop patch version
1631
}
1732
],
1833
"packageRules": [
1934
{
20-
"commitMessageTopic": "bump rust-version",
21-
"matchManagers": [
22-
"custom.regex"
23-
],
24-
"matchPackageNames": [
25-
"rust-version"
26-
],
27-
"extractVersion": "^(?<version>\\d+\\.\\d+)", // drop patch version
28-
"schedule": [
29-
"* * * * *"
30-
],
3135
"minimumReleaseAge": "6 months",
32-
"internalChecksFilter": "strict"
36+
"matchDepNames": [
37+
"rust-version"
38+
]
3339
}
3440
]
3541
}

.github/workflows/automerge.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ jobs:
1515
env:
1616
PR_URL: ${{github.event.pull_request.html_url}}
1717

18-
renovate:
19-
runs-on: ubuntu-latest
20-
if: github.actor == 'renovate[bot]'
21-
steps:
22-
- name: Enable auto-merge
23-
run: gh pr merge --auto --merge "$PR_URL"
24-
env:
25-
PR_URL: ${{github.event.pull_request.html_url}}
18+
# # testing: renovate triggered automerge
19+
# renovate:
20+
# runs-on: ubuntu-latest
21+
# if: github.actor == 'renovate[bot]'
22+
# steps:
23+
# - name: Enable auto-merge
24+
# run: gh pr merge --auto --merge "$PR_URL"
25+
# env:
26+
# PR_URL: ${{github.event.pull_request.html_url}}

0 commit comments

Comments
 (0)