Open ExNG opened 9 months ago
To configure project-level hooks you'd need some type of admin token which can iterate over every project it has access to, check if the Renovate bot user is a member, then add the webhook if missing.
I think you're right that in theory this webhook could be configured for the other events too, eliminating the need for the system hook in the first place. I'm not 100% sure though whether the system hook includes any non-project "meta" events which are useful such as telling the bot when it's been added to a repo or things like that.
In the docs/configure-renovate-ce-gitlab.md doc you state:
To my understanding Gitlab system and project hooks are information equivalent, so it should matter, only that system hooks dont include issue events. This hinders the Dependency Dashboard usage, so my though was a script that applies a project hook with all necessary triggers to all projects which the renovate user has access to and reduces the noise renovate receives but cannot act upon. Does Renovate need a system hook or can a hook also be set on project level by a script for example?
Also by the way thanks for this awesome project, its really helpful!