From: zeripath Date: Sat, 14 Jan 2023 03:37:18 +0000 (+0000) Subject: Fix wechatwork webhook sends empty content in PR review (#21762) (#22440) X-Git-Tag: v1.18.1~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=93e907de4173a64263b024293ac867f8111d4c40;p=gitea.git Fix wechatwork webhook sends empty content in PR review (#21762) (#22440) Backport #21762 Wechatwork webhook is sending the following string for pull request reviews: ``` markdown > ``` This commit fixes this problem. Co-authored-by: Jim Kirisame --- 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