fork/cargo

git clone https://git.julia.blue/fork/cargo

borsAuto merge of #14704 - Muscraft:fix-renovate, r=weihanglo23c36f5f8

0.87.0
2.4 KiB98 linesraw
1{
2  schedule: [
3    'before 5am on the first day of the month',
4  ],
5  semanticCommits: 'enabled',
6  configMigration: true,
7  dependencyDashboard: true,
8  ignorePaths: [
9    '**/tests/**',
10  ],
11  // See rust-lang/cargo#13546 and openssl/openssl#23376 for the exclusion
12  ignoreDeps: ['openssl', 'openssl-src', 'openssl-sys'],
13  customManagers: [
14    {
15      customType: 'regex',
16      fileMatch: [
17        'Cargo.toml$',
18      ],
19      matchStrings: [
20        '\\bMSRV:1\\b.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)',
21        '(?<currentValue>\\d+\\.\\d+(\\.\\d+)?).*?\\bMSRV:1\\b',
22      ],
23      depNameTemplate: 'MSRV:1',  // Support 1 version of rustc
24      packageNameTemplate: 'rust-lang/rust',
25      datasourceTemplate: 'github-releases',
26    },
27    {
28      customType: 'regex',
29      fileMatch: [
30        'Cargo.toml$',
31      ],
32      matchStrings: [
33        '\\bMSRV:3\\b.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)',
34        '(?<currentValue>\\d+\\.\\d+(\\.\\d+)?).*?\\bMSRV:3\\b',
35      ],
36      depNameTemplate: 'MSRV:3',  // Support 3 versions of rustc
37      packageNameTemplate: 'rust-lang/rust',
38      datasourceTemplate: 'github-releases',
39    },
40  ],
41  packageRules: [
42    {
43      commitMessageTopic: 'MSRV (1 version)',
44      matchManagers: [
45        'custom.regex',
46      ],
47      matchDepNames: [
48        'MSRV:1',
49      ],
50      extractVersion: '^(?<version>\\d+\\.\\d+)',  // Drop the patch version
51      schedule: [
52        '* * * * *',
53      ],
54      groupName: 'msrv',
55    },
56    {
57      commitMessageTopic: 'MSRV (3 versions)',
58      matchManagers: [
59        'custom.regex',
60      ],
61      matchDepNames: [
62        'MSRV:3',
63      ],
64      extractVersion: '^(?<version>\\d+\\.\\d+)',  // Drop the patch version
65      schedule: [
66        '* * * * *',
67      ],
68      minimumReleaseAge: '85 days',  // 2 releases back * 6 weeks per release * 7 days per week + 1
69      internalChecksFilter: 'strict',
70      groupName: 'msrv',
71    },
72    // Goals:
73    // - Rollup safe upgrades to reduce CI runner load
74    // - Have lockfile and manifest in-sync (implicit rules)
75    {
76      matchManagers: [
77        'cargo',
78      ],
79      matchCurrentVersion: '>=0.1.0',
80      matchUpdateTypes: [
81        'patch',
82      ],
83      automerge: false,
84      groupName: 'compatible',
85    },
86    {
87      matchManagers: [
88        'cargo',
89      ],
90      matchCurrentVersion: '>=1.0.0',
91      matchUpdateTypes: [
92        'minor',
93      ],
94      automerge: false,
95      groupName: 'compatible',
96    },
97  ],
98}