We should try deleting webhooks on the upstream when deleting the corresponding task.
Deleting some OAuth clients triggers 500 errors
Steps to reproduce:
- Autocreate a repository by pushing some commits.
- Go to the settings page of the repository (info tab).
- Modify the visibility only and save.
- Description is set to "None".
Likely fix: https://sr.ht/bSvg.patch
A possible solution is to expose a flag, which toggles the optionality of the protocol in the following function upstream (it is currently always optional):
In addition, fix https://todo.sr.ht/%7Esircmpwn/sr.ht/99?a=b&c=d&e=f