Trigger webhook on delete release event
requested to merge gitlab-community/gitlab:418113-trigger-webhook-on-delete-release-event into master
What does this MR do and why?
Currently, we trigger webhook on release create and update events.
This merge request allows triggering webhook on the release delete event.
Changelog: changed
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
Screen Recording 2023-10-11 at 16.51.01.mov |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Have runner up
- Open the project go to Code > Tags and create a tag
- Open https://webhook.site/ and copy POST link
- Go to Settings > Webhooks > click Add new webhook button
- Put the copied link to the URL field
- Select Releases events in the Trigger section
- Notice the description for Releases events states "A release is created, updated."
- Click the Add webhook button
- Go to Deploy > Releases and create a release
- Check the page on https://webhook.site/ --> you should get a request with {"action": "create"}
- Go and delete the release
- Check the page on https://webhook.site/ --> you should not get any request
- Checkout to branch with changes
- Go to Deploy > Releases and create a release
- Check the page on https://webhook.site/ --> you should get a request with {"action": "create"}
- Go and delete the release
- Check the page on https://webhook.site/ --> you should get a request with {"action": "delete"}
- Go to Settings > Webhooks > click Add new webhook button
- Notice the description for Releases events now states "A release is created, updated, or deleted."
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #418113 (closed)
Edited by Oksana Kohuch