How config merging behave with the preset :automergeMinor #44006
-
How are you running Renovate?Self-hosted Renovate CLI Which platform you running Renovate on?Other (please specify) Which version of Renovate are you using?43.220.0 Please tell us more about your question or problemOn Azure DevOps, I have this package rule I was expecting that label, and autoApprove be applied only for lockFileMaintenance, minor, patch, pin. But it is not. I have Major update with both the label and approval but not automerging. All the rules with autoApprove and label are extending automergeMinor, so it is unlikely that another rules applied those. Is there a simple way, to specify more actions on automergeMinor matchers ? What I would like is Logs (if relevant)Logs |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
|
@RahulGautamSingh can you take a look please? I remember you saying there was some work you were doing on documenting config merging |
Beta Was this translation helpful? Give feedback.
@scrocquesel-ml150
Your assumption that, the presets within
packageRulesare spread into the parent object is correct.Your packageRule:
{ "extends": [":automergeMinor", ":label(deploy_pr)"], "matchSourceUrls": ["https://private_repo"], "autoApprove": true }After resolution it spreads into:
{ "matchSourceUrls": ["https://private_repo"], "minor": { "automerge": true }, "patch": { "automerge": true }, "pin": { "automerge": true }, "lockFileMaintenance": { "automerge": true }, "addLabels": ["deploy_pr"], "autoApprove": true }What you got wrong was the config of
automergeMinor..automergeis correctly scoped to minor/patch/pin/lockfile, because the preset nested it un…