Skip to content

Commit 27f413a

Browse files
authored
renovate: Enable onboarding PRs for repos without config (#213)
Renovate has built-in onboarding support that proposes a "Configure Renovate" PR to any discovered repo that lacks a config file. We had this disabled, but it's the right mechanism for ensuring new repos get the standard renovate.json extending our shared preset. Set onboardingBranch explicitly to use the bootc-renovate/ prefix, since branchPrefix does not apply to onboarding PRs. Assisted-by: opencode (claude-opus-4-6) Signed-off-by: Colin Walters <walters@verbum.org>
1 parent 8f2d632 commit 27f413a

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

renovate-config.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@ module.exports = {
22
// Find all repositories the GitHub App token has permissions to
33
autodiscover: true,
44

5-
// Don't create the onboarding PRs
5+
// Open onboarding PRs on repos that don't yet have a Renovate config,
6+
// proposing the standard config that extends the shared org-wide preset.
67
//
7-
// All repositories in the organisation will inherit the shared configuration
8-
// (./renovate-shared-config.json) by default unless they opt-out.
9-
onboarding: false,
8+
// The onboarding branch is set explicitly because branchPrefix does not
9+
// apply to onboarding PRs.
10+
onboarding: true,
11+
onboardingBranch: 'bootc-renovate/configure',
12+
onboardingConfig: {
13+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
14+
"extends": ["local>bootc-dev/infra:renovate-shared-config.json"],
15+
},
1016

1117
// Centralise all Renovate configuration into this repository
1218
//

0 commit comments

Comments
 (0)