Skip to content

Commit c8f3eb6

Browse files
authoredNov 19, 2022
Fix wechatwork webhook sends empty content in PR review (#21762)
Wechatwork webhook is sending the following string for pull request reviews: ``` markdown # > ``` This commit fixes this problem.
1 parent eec1c71 commit c8f3eb6

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)
Please sign in to comment.