Multiple Renovate users #33946
Replies: 3 comments 1 reply
-
Pretty sure it won't work: second user/token will see a branch/MR already exists from 1st user/token and will refuse to act on it. At least that's the default behaviour. I've observed that when changing tokens instead of renewing them properly. |
Beta Was this translation helpful? Give feedback.
-
I think this would be a very "heavy" way to achieve what you want, leading to race conditions, edge cases, etc. Better would be for Renovate to introduce the concept of a built-in "approver" (or two) for its own PRs/MRs. |
Beta Was this translation helpful? Give feedback.
-
Thanks all. I think the simplest option in the short term might be to run a scheduled pipeline using a secondary "Renovate Approver" token that iterates over the API, finds any project where Renovate is enabled, and approves any MR that is raised by Renovate. That way Renovate can raise MRs with |
Beta Was this translation helpful? Give feedback.
-
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.
GitLab
Please tell us more about your question or problem
Hi all,
My organisation enforces in GitLab that a user may not approve and merge their own changes, which prevents Renovate from auto-merging its own MRs. We can add an exception in our policies to allow Renovate to auto-merge but we've hit a technical problem. This enforcement setting is per repository and you can't override it per user meaning we can't turn the setting off for our Renovate user without turning it off for all users in the repository.
I am considering the option of running two instances of Renovate, each with a different API token. We would kick them off in an alternating fashion, never overlapping, such that it doesn't really matter which one raises the MR and which one approves+merges it.
Is there any reason why this might not work? E.g. detecting commits from the current user? Are there better options?
Thanks!
Logs (if relevant)
No response
Beta Was this translation helpful? Give feedback.
All reactions