support redelivering a webhook #459
Labels
area/api
Indicates a change to the API
area/server
Indicates a change to the server
feature
Indicates a new feature
Projects
Description
Earlier this year, GitHub introduced support for API functionality for webhooks:
https://github.blog/changelog/2021-06-30-webhook-deliveries-api/
We should add support to Vela to be able to redeliver a webhook:
https://docs.github.com/en/rest/reference/webhooks#redeliver-a-delivery-for-a-repository-webhook
This functionality could, and possibly should, be replicated from the existing logic used to restart a build:
https://go-vela.github.io/docs/reference/api/build/restart/
https://go-vela.github.io/docs/reference/cli/build/restart/
https://github.com/go-vela/server/blob/master/api/build.go#L745
Value
This can happen for multiple reasons but to provide a quick example:
403 Your account has been suspended
error messageTo resolve this issue, it often requires a user to go and change ownership of the repository in Vela
After they perform that action, they are forced to redeliver any webhooks that failed with the
403
error manuallyInstead, I propose they be able to redeliver the failed webhook through the Vela system
Definition of Done
A user can trigger some interaction through Vela that initiates an API call to the source system to redeliver a webhook
Ideally this would include an API endpoint, CLI command, and button in UI that enable this functionality
Effort (Optional)
1 week
Impacted Personas (Optional)
everyone
The text was updated successfully, but these errors were encountered: