mirror of
1
Fork 0
forgejo/modules/notification
KN4CK3R 1887c95254
Decouple HookTask from Repository (#17940)
At the moment a repository reference is needed for webhooks. With the
upcoming package PR we need to send webhooks without a repository
reference. For example a package is uploaded to an organization. In
theory this enables the usage of webhooks for future user actions.

This PR removes the repository id from `HookTask` and changes how the
hooks are processed (see `services/webhook/deliver.go`). In a follow up
PR I want to remove the usage of the `UniqueQueue´ and replace it with a
normal queue because there is no reason to be unique.

Co-authored-by: 6543 <6543@obermui.de>
2022-10-21 18:21:56 +02:00
..
action Move some files into models' sub packages (#20262) 2022-08-25 10:31:57 +08:00
base Webhook for Wiki changes (#20219) 2022-09-04 20:54:23 +01:00
indexer Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
mail Move some files into models' sub packages (#20262) 2022-08-25 10:31:57 +08:00
mirror Implement sync push mirror on commit (#19411) 2022-07-08 20:45:12 +01:00
ui Add generic set type (#21408) 2022-10-12 13:18:26 +08:00
webhook Decouple HookTask from Repository (#17940) 2022-10-21 18:21:56 +02:00
notification.go Webhook for Wiki changes (#20219) 2022-09-04 20:54:23 +01:00