forgejo-federation/services
James Lakin 6fc129fe62
Fix repository create/delete event webhooks (#13008)
This small PR changes the webhook trigger behaviour to be more in line with what's expected. (When 'repository' events are enabled, of course)

In other words:

For system-wide or default webhooks, repository events will now trigger said webhook. Previously it had to be under an organization for create events to be visible - a tad unexpected!
Deleting a repository will now fire its own defined webhooks, not just organisational and system ones.
In order to enable the latter the webhook has to now be triggered before the actual repo undergoes deletion. I'm willing to tweak this to try and 'grab' the webhook model beforehand and trigger the webhook notifier directly afterwards, but this may make the code more complex for little benefit.

Closes #11766, #9180.
2020-10-02 10:37:46 +01:00
..
comments Refactor pull request review (#8954) 2019-11-14 10:57:36 +08:00
externalaccount Allow externalID to be UUID (#8551) 2019-10-17 10:06:28 +08:00
gitdiff Fix yet another bug with diff file names (#12771) 2020-09-09 14:08:40 +01:00
issue Change/remove a branch of an open issue (#9080) 2020-09-08 12:29:51 -04:00
mailer Fix "only mail on mention" bug (#12775) 2020-09-09 15:08:55 -04:00
mirror Mirror: Update DB on Address-Update too (#12964) 2020-09-28 15:00:52 -04:00
pull Add configurable Trust Models (#11712) 2020-09-20 00:44:55 +08:00
release Add a storage layer for attachments (#11387) 2020-08-18 12:23:45 +08:00
repository Fix repository create/delete event webhooks (#13008) 2020-10-02 10:37:46 +01:00
wiki Add configurable Trust Models (#11712) 2020-09-20 00:44:55 +08:00