Branch-based automerge is challenging with a busy main branch #32729
Unanswered
nordbergm
asked this question in
Request Help
Replies: 1 comment 4 replies
-
In theory, Renovate's approach that branch automerging updates must be up-to-date with the git base branch is an "opinionated" setting which could be made configurable. However how would you anticipate the git to look like when merging "stale" (behind) branches? e.g. a git merge commit (non-ff), or a git rebase commit? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How are you running Renovate?
Self-hosted Renovate
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
GitHub / renovate-ce 7.5.0
Please tell us more about your question or problem
We've configured Renovate for branch-based automerge with
"automergeType": "branch"
,"automerge": true
and"rebaseWhen": "auto"
which in itself is working as expected.However, because our repository is a large monorepo with very frequent commits to the main branch, coupled with github checks taking a while to complete, Renovate ends up in an infinite loop of trying to keep these branches up to date with main. As a result, Renovate rarely gets a chance to merge branches due to this.
We briefly tried to use
"rebaseWhen": "conflicted"
in an attempt to allow stale branches, however, this triggers this code in Renovate and forces a PR instead.What is the recommended way to configure Renovate in this scenario to avoid the infinite rebase loop?
Merging stale branches is ok with us in this scenario.
Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions