|
17 | 17 | // This tells Renovate to combine all updates in one PR so that we have fewer PRs to deal with. |
18 | 18 | "group:all", |
19 | 19 | ], |
| 20 | + // The number of PRs that can be open against the repo. |
| 21 | + "prConcurrentLimit": 20, |
| 22 | + // `null` means the branch limit should be the same as PR limit. |
| 23 | + "branchConcurrentLimit": null, |
| 24 | + // The number of PRs MintMaker can open in one hour, effectively in one run. |
| 25 | + "prHourlyLimit": 4, |
20 | 26 | "timezone": "Etc/UTC", |
21 | 27 | "schedule": [ |
22 | | - // This controls when Renovate can create new branches and open PRs. |
23 | 28 | // Allowed syntax: https://docs.renovatebot.com/configuration-options/#schedule |
| 29 | + // This is a "general" schedule for managers that don't declare their own. |
24 | 30 | // The time was selected (with the help of https://time.fyi/timezones) so that Renovate isn't active during business |
25 | | - // hours from Germany to US West Coast. This way, we limit the number of changes Renovate can merge to one per day. |
26 | | - "after 3am and before 7am", |
| 31 | + // hours from Central Europe to US West Coast. This way, after we merge a PR, a new one does not pop up immediately |
| 32 | + // after that. |
| 33 | + // Between 3a.m. and 7a.m. every day. |
| 34 | + "* 3-7 * * *", |
27 | 35 | ], |
28 | | - // Tell Renovate that it can rebase and update its branches (and/or its PRs) at times outside the `schedule`. |
29 | | - "updateNotScheduled": true, |
| 36 | + // Tell Renovate not to update PRs when outside schedule. |
| 37 | + "updateNotScheduled": false, |
30 | 38 | "tekton": { |
31 | | - "includePaths": [ |
32 | | - ".tekton/**", |
33 | | - ], |
34 | 39 | "schedule": [ |
35 | | - // For some reason, Konflux config defines custom schedule on each type of dependency manager and that takes |
36 | | - // precedence over the global/default schedule. We want our own schedule and hence need to make this override. |
37 | | - "after 3am and before 7am", |
| 40 | + // Between 3a.m. and 7a.m. every day. |
| 41 | + // We duplicate our desired schedule here because Konflux global config tends to have a special override for it. |
| 42 | + "* 3-7 * * *", |
38 | 43 | ], |
39 | 44 | "packageRules": [ |
40 | 45 | // Note: the packageRules from the Konflux config (find URL in comments above) get merged with these. |
|
45 | 50 | ], |
46 | 51 | }, |
47 | 52 | ], |
48 | | - "automerge": true, |
49 | | - // PRs can't be actually automerged because we require approval from CODEOWNERS which Renovate can't bypass, |
50 | | - // therefore, we set automerge type to branch. |
51 | | - "automergeType": "branch", |
52 | | - "automergeStrategy": "squash", |
53 | | - // Tell Renovate that it can automerge branches at any time of the day. |
54 | | - "automergeSchedule": [ |
55 | | - "at any time" |
56 | | - ], |
57 | 53 | }, |
58 | 54 | "enabledManagers": [ |
| 55 | + // Restrict Konflux bot focus on Konflux things since we rely on GitHub's dependabot for everything else. |
59 | 56 | "tekton", |
60 | 57 | ], |
| 58 | + "packageRules": [ |
| 59 | + { |
| 60 | + "matchPackageNames": [ |
| 61 | + "*", |
| 62 | + ], |
| 63 | + "groupName": "All updates", |
| 64 | + "automerge": true, |
| 65 | + // A known issue is that some non-Konflux CI jobs currently fail, which may prevent successful auto-merging with a "branch" auto-merge setting. |
| 66 | + // Therefore, we use PR merge type and have automation approve PRs. |
| 67 | + "automergeType": "pr", |
| 68 | + "automergeStrategy": "squash", |
| 69 | + // Tell Renovate that it can automerge branches at any time of the day. |
| 70 | + "automergeSchedule": [ |
| 71 | + "at any time", |
| 72 | + ], |
| 73 | + } |
| 74 | + ], |
61 | 75 | } |
0 commit comments