Renovate removes GitLab approval rules independently of automerge option #31354
Labels
core:automerge
Relating to Renovate's automerge capabilities
platform:gitlab
GitLab Platform
priority-3-medium
Default priority, "should be done" but isn't prioritised ahead of others
type:bug
Bug fix of existing functionality
Discussed in #31353
Originally posted by nc-igad September 12, 2024
What would you like help with?
I think I found a bug
How are you running Renovate?
Self-hosted
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
GitLab
Please tell us more about your question or problem
Hi!
We recently upgraded our renovate version. After the upgrade, we saw that renovate started removing the approval rules on all merge requests independently of the value of
automerge
.The issue occurs starting from v37.421.7, I think this was introduced by this code change #29972.
Example project configuration
The renovate.json file of the project looks similar to this:
Expected behavior
Renovate removes the approval rules on the new merge requests for azure packages only as automerge is enabled for them. All other merge requests are created with the projects default approval rules.
Actual behavior
Renovate creates the new merge requests and removes the approval rules on all of them.
The text was updated successfully, but these errors were encountered: