Skip to content

Commit 923bb52

Browse files
committed
feat: reviewer information for pr approved or rejected
1 parent 61ea01d commit 923bb52

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

services/webhook/notifier.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -714,11 +714,12 @@ func (m *webhookNotifier) NotifyPullRequestReview(ctx context.Context, pr *issue
714714
return
715715
}
716716
if err := PrepareWebhooks(ctx, EventSource{Repository: review.Issue.Repo}, reviewHookType, &api.PullRequestPayload{
717-
Action: api.HookIssueReviewed,
718-
Index: review.Issue.Index,
719-
PullRequest: convert.ToAPIPullRequest(ctx, pr, nil),
720-
Repository: convert.ToRepo(ctx, review.Issue.Repo, permission),
721-
Sender: convert.ToUser(ctx, review.Reviewer, nil),
717+
Action: api.HookIssueReviewed,
718+
Index: review.Issue.Index,
719+
PullRequest: convert.ToAPIPullRequest(ctx, pr, nil),
720+
RequestedReviewer: convert.ToUser(ctx, review.Reviewer, nil),
721+
Repository: convert.ToRepo(ctx, review.Issue.Repo, permission),
722+
Sender: convert.ToUser(ctx, review.Reviewer, nil),
722723
Review: &api.ReviewPayload{
723724
Type: string(reviewHookType),
724725
Content: review.Content,

0 commit comments

Comments
 (0)