Webhooks Form should not save if no trigger is selected
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
A user is currently able to create a webhook without selecting a trigger. We should require that at least one hook event is selected before saving the form. In the screenshot below, no trigger was chosen.
Instead of requiring a trigger is selected, we could inform the user that no trigger was selected yet permit the save. To be confirmed.
Steps to reproduce
- Navigate to a project or group that you have at least owner -level status with
- Navigate to settings > Webhooks > Add a webhook
- Add a url for the webhook but do not check any triggers in the form
- Save. You're redirected to the /hooks page and can see the webhook that was created.
Edited by 🤖 GitLab Bot 🤖
