Skip to content

Commit

Permalink
Fix wechatwork webhook sends empty content in PR review (#21762) (#22440
Browse files Browse the repository at this point in the history
)

Backport #21762

Wechatwork webhook is sending the following string for pull request
reviews:

``` markdown
>
```

This commit fixes this problem.

Co-authored-by: Jim Kirisame <jim@lotlab.org>
  • Loading branch information
zeripath and jim-kirisame authored Jan 14, 2023
1 parent f3034b1 commit 93e907d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/webhook/wechatwork.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93e907d

Please sign in to comment.