diff options
author | Jim Kirisame <jim@lotlab.org> | 2022-11-19 23:19:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-19 15:19:14 +0000 |
commit | c8f3eb6acbf16b9f2e74fa2bfabb384359fbadd8 (patch) | |
tree | 6c89e9ae7fb5f1f20cda57e094d35a9581b5326e | |
parent | eec1c718806797b21ba5f6c1ceddf711e9d4801a (diff) | |
download | gitea-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.go | 2 |
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 |