diff --git a/lib/config/validation.spec.ts b/lib/config/validation.spec.ts index 5b5487da984f36..5d337956ffbef3 100644 --- a/lib/config/validation.spec.ts +++ b/lib/config/validation.spec.ts @@ -604,6 +604,7 @@ describe(getName(), () => { }); it('warns on nested group packageRules', async () => { const config = { + extends: ['group:fortawesome'], packageRules: [ { automerge: true, diff --git a/lib/config/validation.ts b/lib/config/validation.ts index 8e9b086a12a715..93c13065b5d730 100644 --- a/lib/config/validation.ts +++ b/lib/config/validation.ts @@ -256,7 +256,10 @@ export async function validateConfig( const tzRe = /^:timezone\((.+)\)$/; for (const subval of val) { if (is.string(subval)) { - if (subval.startsWith('group:')) { + if ( + parentName === 'packageRules' && + subval.startsWith('group:') + ) { warnings.push({ topic: 'Configuration Warning', message: `${currentPath}: you should not extend "group:" presets`,