Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3538491

Browse files
Merge pull request #63 from epage/renovate
chore(ci): Auto-update versions
2 parents 5bea668 + d384abe commit 3538491

File tree

3 files changed

+109
-2
lines changed

3 files changed

+109
-2
lines changed

‎.github/renovate.json5‎

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
{
2+
schedule: [
3+
'before 5am on the first day of the month',
4+
],
5+
semanticCommits: 'enabled',
6+
configMigration: true,
7+
dependencyDashboard: true,
8+
customManagers: [
9+
{
10+
customType: 'regex',
11+
fileMatch: [
12+
'^rust-toolchain\\.toml$',
13+
'Cargo.toml$',
14+
'clippy.toml$',
15+
'\\.clippy.toml$',
16+
'^\\.github/workflows/ci.yml$',
17+
'^\\.github/workflows/rust-next.yml$',
18+
],
19+
matchStrings: [
20+
'MSRV.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)',
21+
'(?<currentValue>\\d+\\.\\d+(\\.\\d+)?).*?MSRV',
22+
],
23+
depNameTemplate: 'rust',
24+
packageNameTemplate: 'rust-lang/rust',
25+
datasourceTemplate: 'github-releases',
26+
},
27+
],
28+
packageRules: [
29+
{
30+
commitMessageTopic: 'MSRV',
31+
matchManagers: [
32+
'regex',
33+
],
34+
matchPackageNames: [
35+
'rust',
36+
],
37+
minimumReleaseAge: '84 days', // 2 releases back * 6 weeks per release * 7 days per week
38+
internalChecksFilter: 'strict',
39+
extractVersion: '^(?<version>\\d+\\.\\d+)', // Drop the patch version
40+
schedule: [
41+
'* * * * *',
42+
],
43+
},
44+
// Goals:
45+
// - Keep version reqs low, ignoring compatible normal/build dependencies
46+
// - Take advantage of latest dev-dependencies
47+
// - Rollup safe upgrades to reduce CI runner load
48+
// - Help keep number of versions down by always using latest breaking change
49+
// - Have lockfile and manifest in-sync
50+
{
51+
matchManagers: [
52+
'cargo',
53+
],
54+
matchDepTypes: [
55+
'build-dependencies',
56+
'dependencies',
57+
],
58+
matchCurrentVersion: '>=0.1.0',
59+
matchUpdateTypes: [
60+
'patch',
61+
],
62+
enabled: false,
63+
},
64+
{
65+
matchManagers: [
66+
'cargo',
67+
],
68+
matchDepTypes: [
69+
'build-dependencies',
70+
'dependencies',
71+
],
72+
matchCurrentVersion: '>=1.0.0',
73+
matchUpdateTypes: [
74+
'minor',
75+
],
76+
enabled: false,
77+
},
78+
{
79+
matchManagers: [
80+
'cargo',
81+
],
82+
matchDepTypes: [
83+
'dev-dependencies',
84+
],
85+
matchCurrentVersion: '>=0.1.0',
86+
matchUpdateTypes: [
87+
'patch',
88+
],
89+
automerge: true,
90+
groupName: 'compatible (dev)',
91+
},
92+
{
93+
matchManagers: [
94+
'cargo',
95+
],
96+
matchDepTypes: [
97+
'dev-dependencies',
98+
],
99+
matchCurrentVersion: '>=1.0.0',
100+
matchUpdateTypes: [
101+
'minor',
102+
],
103+
automerge: true,
104+
groupName: 'compatible (dev)',
105+
},
106+
],
107+
}

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: No-default features
5050
run: cargo test --workspace --no-default-features
5151
msrv:
52-
name: "Check MSRV: 1.70"
52+
name: "Check MSRV: 1.70"# MSRV
5353
runs-on: ubuntu-latest
5454
steps:
5555
- name: Checkout repository

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "annotate-snippets"
33
version = "0.9.2"
44
edition = "2021"
5-
rust-version = "1.70.0"
5+
rust-version = "1.70"# MSRV
66
authors = ["Zibi Braniecki <gandalf@mozilla.com>"]
77
description = "Library for building code annotations"
88
license = "Apache-2.0/MIT"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /