Skip to content

Commit d7f0cb3

Browse files
jim-kirisamezeripath
authored andcommitted
Fix wechatwork webhook sends empty content in PR review (go-gitea#21762)
Backport go-gitea#21762 Wechatwork webhook is sending the following string for pull request reviews: ``` markdown > ``` This commit fixes this problem.
1 parent 421d879 commit d7f0cb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/webhook/wechatwork.go

+1-1
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)