aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Kirisame <jim@lotlab.org>2022-11-19 23:19:14 +0800
committerGitHub <noreply@github.com>2022-11-19 15:19:14 +0000
commitc8f3eb6acbf16b9f2e74fa2bfabb384359fbadd8 (patch)
tree6c89e9ae7fb5f1f20cda57e094d35a9581b5326e
parenteec1c718806797b21ba5f6c1ceddf711e9d4801a (diff)
downloadgitea-c8f3eb6acbf16b9f2e74fa2bfabb384359fbadd8.tar.gz
gitea-c8f3eb6acbf16b9f2e74fa2bfabb384359fbadd8.zip
Fix wechatwork webhook sends empty content in PR review (#21762)
Wechatwork webhook is sending the following string for pull request reviews: ``` markdown # > ``` This commit fixes this problem.
-rw-r--r--services/webhook/wechatwork.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/webhook/wechatwork.go b/services/webhook/wechatwork.go
index 5344ccaa22..acaa12253b 100644
--- a/services/webhook/wechatwork.go
+++ b/services/webhook/wechatwork.go
@@ -139,7 +139,7 @@ func (f *WechatworkPayload) PullRequest(p *api.PullRequestPayload) (api.Payloade
func (f *WechatworkPayload) Review(p *api.PullRequestPayload, event webhook_model.HookEventType) (api.Payloader, error) {
var text, title string
switch p.Action {
- case api.HookIssueSynchronized:
+ case api.HookIssueReviewed:
action, err := parseHookPullRequestEventType(event)
if err != nil {
return nil, err