Skip to content

Commit 93e907d

Browse files
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 <[email protected]>
1 parent f3034b1 commit 93e907d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/webhook/wechatwork.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func (f *WechatworkPayload) PullRequest(p *api.PullRequestPayload) (api.Payloade
139139
func (f *WechatworkPayload) Review(p *api.PullRequestPayload, event webhook_model.HookEventType) (api.Payloader, error) {
140140
var text, title string
141141
switch p.Action {
142-
case api.HookIssueSynchronized:
142+
case api.HookIssueReviewed:
143143
action, err := parseHookPullRequestEventType(event)
144144
if err != nil {
145145
return nil, err

0 commit comments

Comments
 (0)