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
Wechatwork webhook is sending the following string for pull request reviews:

``` markdown
# 
>
```

This commit fixes this problem.
  • Loading branch information
jim-kirisame authored and fsologureng committed Nov 22, 2022
1 parent 1b2470c commit 4e5c491
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 4e5c491

Please sign in to comment.