]> source.dussan.org Git - gitea.git/commit
Refactor webhooks to reduce code duplication (#9422)
authorCornel <cornelk@users.noreply.github.com>
Sat, 28 Dec 2019 08:55:09 +0000 (16:55 +0800)
committerzeripath <art27@cantab.net>
Sat, 28 Dec 2019 08:55:09 +0000 (08:55 +0000)
commit81e63d0714f1539fcd688cf3e216b0eab89e88aa
treecddd201be48da86ba309e7d794f8c6becf3c1b05
parent10455a88dc28c00f86587266a1ecd736bea63d03
Refactor webhooks to reduce code duplication (#9422)

* Start webhook refactoring to reduce code duplication

* More webhook refactoring

* Unify webhook release messages

* Fix webhook release link

* Remove sql import

* More webhook refactoring

* More webhook refactoring

* Webhook tests extended

* Fixed issue opened webhook

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <matti@mdranta.net>
modules/webhook/dingtalk.go
modules/webhook/dingtalk_test.go [new file with mode: 0644]
modules/webhook/discord.go
modules/webhook/general.go [new file with mode: 0644]
modules/webhook/general_test.go [new file with mode: 0644]
modules/webhook/msteams.go
modules/webhook/slack.go
modules/webhook/slack_test.go [new file with mode: 0644]
modules/webhook/telegram.go
modules/webhook/telegram_test.go [new file with mode: 0644]