Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Equivalent Gitlab system and project hooks #433

Open
ExNG opened this issue Jan 23, 2024 · 1 comment
Open

Equivalent Gitlab system and project hooks #433

ExNG opened this issue Jan 23, 2024 · 1 comment

Comments

@ExNG
Copy link

ExNG commented Jan 23, 2024

In the docs/configure-renovate-ce-gitlab.md doc you state:

Because Issue events aren't included in System hooks, a webhook must be individually configured for each repository in which you want the Dependency Dashboard issue to be interactive.

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!

@rarkins
Copy link
Member

rarkins commented Jan 23, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants