-
Notifications
You must be signed in to change notification settings - Fork 251
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
Webhook management #683
base: main
Are you sure you want to change the base?
Webhook management #683
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks a lot for this feature @blaketigges and sorry for not taking the time to look into it earler. There are a few nits regarding nomenclature which I feel would be easier for users to leverage the solution. Happy to look into it if you do not plan to work further onto this though.
@@ -50,6 +50,23 @@ server: | |||
# environment variable) | |||
secret_token: 063f51ec-09a4-11eb-adc1-0242ac120002 | |||
|
|||
add_webhooks: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add_webhooks: | |
manage_projects: |
# GCPE Webhook endpoint URL | ||
webhook_url: https://gcpe.example.net/webhook |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# GCPE Webhook endpoint URL | |
webhook_url: https://gcpe.example.net/webhook | |
# GCPE Webhook endpoint URL accessible from GitLab | |
advertised_url: https://gcpe.example.net/webhook |
# Whether to remove webhooks when GCPE shutsdown | ||
remove_webhooks: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Whether to remove webhooks when GCPE shutsdown | |
remove_webhooks: false | |
# Whether or not to remove webhooks when GCPE shuts down | |
remove_on_delete: false |
return err | ||
} | ||
|
||
WURL := c.Config.Server.Webhook.URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WURL := c.Config.Server.Webhook.URL | |
webhookURL := c.Config.Server.Webhook.URL |
I don't have the environment set up anymore for testing, can you look into it? |
no worries, will do thanks! :) |
Adds a feature to allow gcpe to add webhooks to every project added by name or wildcard then have the option to remove them on shutdown.