forgejo/services/webhook
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
..
deliver.go Decouple HookTask from Repository (#17940) 2022-10-21 18:21:56 +02:00
deliver_test.go
dingtalk.go Display total commit count in hook message (#21400) 2022-10-17 00:22:34 +08:00
dingtalk_test.go Display total commit count in hook message (#21400) 2022-10-17 00:22:34 +08:00
discord.go Display total commit count in hook message (#21400) 2022-10-17 00:22:34 +08:00
discord_test.go
feishu.go
feishu_test.go
general.go
general_test.go Display total commit count in hook message (#21400) 2022-10-17 00:22:34 +08:00
main_test.go
matrix.go Display total commit count in hook message (#21400) 2022-10-17 00:22:34 +08:00
matrix_test.go
msteams.go Display total commit count in hook message (#21400) 2022-10-17 00:22:34 +08:00
msteams_test.go
packagist.go
packagist_test.go
payloader.go
slack.go Display total commit count in hook message (#21400) 2022-10-17 00:22:34 +08:00
slack_test.go
telegram.go Display total commit count in hook message (#21400) 2022-10-17 00:22:34 +08:00
telegram_test.go
webhook.go Decouple HookTask from Repository (#17940) 2022-10-21 18:21:56 +02:00
webhook_test.go Decouple HookTask from Repository (#17940) 2022-10-21 18:21:56 +02:00
wechatwork.go Display total commit count in hook message (#21400) 2022-10-17 00:22:34 +08:00