AI / RenovateBot Interview Questions
What is automerge in Renovate and what are the different automerge strategies?
Automerge allows Renovate to merge a PR automatically once all status checks pass. This is most useful for patch updates and trusted packages where CI provides sufficient confidence.
{ "packageRules": [ { "matchUpdateTypes": ["patch"], "automerge": true, "automergeType": "pr" }, { "matchDepTypes": ["devDependencies"], "matchUpdateTypes": ["minor", "patch"], "automerge": true, "automergeStrategy": "squash" }, { "matchDepTypes": ["dependencies"], "matchUpdateTypes": ["major"], "automerge": false } ] }
| Value | Behaviour |
|---|---|
| pr (default) | Creates a normal PR; merges it when all checks pass |
| branch | Commits directly to the default branch without creating a PR |
| pr-comment | Posts a comment to trigger automerge via a bot comment |
More Related questions...