|
1 | 1 | { |
2 | 2 | $schema: 'https://docs.renovatebot.com/renovate-schema.json', |
3 | 3 | extends: [ |
4 | | - 'config:best-practices', |
| 4 | + 'config:best-practices', //See https://docs.renovatebot.com/upgrade-best-practices/#use-the-configbest-practices-preset |
5 | 5 | ':disableRateLimiting', |
6 | | - 'github>orange-cloudfoundry/renovate-public-presets:boshreleases-default.json5', |
| 6 | + 'github>orange-cloudfoundry/renovate-public-presets:boshreleases-default.json5' |
7 | 7 | ], |
8 | 8 | enabledManagers: [ |
9 | 9 | 'github-actions', |
|
17 | 17 | 'jobs/**', |
18 | 18 | ], |
19 | 19 | baseBranchPatterns: [ |
20 | | - '$default', |
21 | | - ], |
| 20 | + '$default', // don't run on renovate branches |
| 21 | + // See https://docs.renovatebot.com/configuration-options/#basebranches |
| 22 | + // baseBranches supports Regular Expressions that must begin and end with / |
| 23 | + ], //See also possible support for multiple base branches, one per K8S minor version https://docs.renovatebot.com/configuration-options/#basebranches |
22 | 24 | packageRules: [ |
23 | 25 | { |
24 | 26 | description: 'Add common labels', |
25 | 27 | addLabels: [ |
| 28 | + // See full list of fields available at https://docs.renovatebot.com/templates/#other-available-fields |
26 | 29 | 'datasource/{{datasource}}', |
27 | 30 | 'depName/{{depNameSanitized}}', |
28 | 31 | 'manager/{{manager}}', |
|
37 | 40 | 'kubernetes/kubernetes', |
38 | 41 | 'orange-cloudfoundry/create-bosh-release-action', |
39 | 42 | ], |
| 43 | + //see https://docs.renovatebot.com/key-concepts/automerge/#automerge-non-major-updates |
40 | 44 | matchUpdateTypes: [ |
41 | 45 | 'patch', |
42 | 46 | ], |
43 | 47 | matchCurrentVersion: '!/-rc/', |
44 | 48 | automerge: true, |
| 49 | + //see https://docs.renovatebot.com/key-concepts/automerge/#absence-of-tests |
45 | 50 | ignoreTests: true, |
46 | 51 | }, |
47 | 52 | { |
|
51 | 56 | ], |
52 | 57 | separateMinorPatch: true, |
53 | 58 | addLabels: [ |
54 | | - 'depName/kubernetes-kubectl', |
| 59 | + 'depName/kubernetes-kubectl', //override common labels for kubectl, as we have to scan kubernetes releases |
55 | 60 | ], |
56 | | - separateMultipleMinor: true, |
| 61 | + separateMultipleMinor: true, // https://github.com/renovatebot/renovate/pull/24538 is effective |
57 | 62 | }, |
58 | 63 | { |
59 | 64 | description: 'Use to bump CLIs managed by jaxxstorm/action-install-gh-release', |
|
74 | 79 | '/.github/workflows/.+.yml$/', |
75 | 80 | ], |
76 | 81 | matchStrings: [ |
| 82 | + // https://regex101.com/r/Hajw59/2 |
77 | 83 | ' +uses: jaxxstorm\\/action-install-gh-release.*\\n.*\\n +repo: (?<depName>[a-z0-9\\.\\/\\-]*?)\\n +tag: (?<currentValue>[a-z0-9\\.\\/\\-\\+]*?) *\\n', |
78 | 84 | ], |
79 | 85 | datasourceTemplate: 'github-releases', |
|
0 commit comments