Skip to content

Commit

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

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

``` markdown
>
```

This commit fixes this problem.
  • Loading branch information
jim-kirisame authored and zeripath committed Jan 13, 2023
1 parent 421d879 commit d7f0cb3
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 d7f0cb3

Please sign in to comment.