forgejo-federation/services/repository
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
..
generate.go Adopt repositories (#12920) 2020-09-25 07:09:23 +03:00
main_test.go Move transfer repository and rename repository on a service package and start action notification (#8573) 2019-11-15 16:06:11 +08:00
push.go Update only the repository columns that need updating (#12900) 2020-09-20 13:55:15 -04:00
push_test.go Move all push update operations to a queue (#10133) 2020-09-11 10:14:48 -04:00
repository.go Fix repository create/delete event webhooks (#13008) 2020-10-02 10:37:46 +01:00
transfer.go API endpoint for repo transfer (#9947) 2020-01-31 15:49:04 +00:00
transfer_test.go API endpoint for repo transfer (#9947) 2020-01-31 15:49:04 +00:00