Why does gitLabIgnoreApprovals
require usePlatformAutomerge
?
#29968
-
What would you like help with?I would like help with my configuration 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 ghcr.io/renovatebot/renovate:37.280.0@sha256:41d577babe0af3f75c1f0784b13fcf3a6850515622b584526f574c23e21366cb Please tell us more about your question or problem
(I'm going to use the word Our usage of Renovate looks a little like this:
Our simplified config{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
],
"prConcurrentLimit": 3,
"platformAutomerge": true,
"gitLabIgnoreApprovals": true,
"schedule": [
"after 10pm every weekday",
"before 5am every weekday",
"every weekend"
],
"packageRules": [
{
"matchUpdateTypes": [
"minor",
"patch",
"pin",
"digest"
],
"automerge": true
}
],
"timezone": "America/Detroit",
} Automerging During Work HoursWe're facing an issue with Renovate auto-merging dependency updates during our business hours. This causes disruptions for developers who are actively working on merging their own code changes. Here's the scenario:
We were hoping to resolve this by using the Invalid config with `automergeSchedule` set{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
],
"prConcurrentLimit": 3,
"platformAutomerge": true,
"gitLabIgnoreApprovals": true,
"automergeSchedule": [
"after 10pm every weekday",
"before 5am every weekday",
"every weekend"
],
"schedule": [
"after 10pm every weekday",
"before 5am every weekday",
"every weekend"
],
"packageRules": [
{
"matchUpdateTypes": [
"minor",
"patch",
"pin",
"digest"
],
"automerge": true
}
],
"timezone": "America/Detroit",
} automergeScheduleUnfortunately,
Ok. That's fine. We'll disable Invalid config with `platformAutomerge=false`{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
],
"prConcurrentLimit": 3,
"platformAutomerge": false,
"gitLabIgnoreApprovals": true,
"automergeSchedule": [
"after 10pm every weekday",
"before 5am every weekday",
"every weekend"
],
"schedule": [
"after 10pm every weekday",
"before 5am every weekday",
"every weekend"
],
"packageRules": [
{
"matchUpdateTypes": [
"minor",
"patch",
"pin",
"digest"
],
"automerge": true
}
],
"timezone": "America/Detroit",
} automergeThis sorta works. It now creates the MRs outside of business hours and it doesn't merge them during business hours. But now it doesn't merge them at all. Now all of the MRs created by Renovate suddenly require approvals. The problem with
This means that Renovate will create MRs and try to auto-merge them, but fail until someone manually approves the MR. This isn't very automatic and quickly creates a backlog dependency updates. What we'd like to have is Renovate automatically create MRs outside of business hours, merge them if they pass our pipeline, but freeze any merges during business hours. We keep hitting config conflicts each time we think we've solved it like that. Possible Solutions
Questions
Thanks! Logs (if relevant)Logs
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I'm wondering if it's possible to allow the bot to auto-approve its own MR in our GitLab. I know there's a Renovate config for it. https://docs.renovatebot.com/configuration-options/#autoapprove Auto-approving your own MR is currently disabled in our GitLab for MRs. But I'm still looking if there is a way to override this property for certain users based on these configuration options since I found this quote: "Users with specific permissions can always approve work" |
Beta Was this translation helpful? Give feedback.
-
A PR would be welcome to "ungate" the auto approve |
Beta Was this translation helpful? Give feedback.
Thanks! MR opened. Did my best to follow the guidelines. Tested locally.