Skip to content

Commit

Permalink
feat: reviewer information for pr approved or rejected
Browse files Browse the repository at this point in the history
  • Loading branch information
Makonike committed Jul 27, 2023
1 parent 61ea01d commit 923bb52
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions services/webhook/notifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -714,11 +714,12 @@ func (m *webhookNotifier) NotifyPullRequestReview(ctx context.Context, pr *issue
return
}
if err := PrepareWebhooks(ctx, EventSource{Repository: review.Issue.Repo}, reviewHookType, &api.PullRequestPayload{
Action: api.HookIssueReviewed,
Index: review.Issue.Index,
PullRequest: convert.ToAPIPullRequest(ctx, pr, nil),
Repository: convert.ToRepo(ctx, review.Issue.Repo, permission),
Sender: convert.ToUser(ctx, review.Reviewer, nil),
Action: api.HookIssueReviewed,
Index: review.Issue.Index,
PullRequest: convert.ToAPIPullRequest(ctx, pr, nil),
RequestedReviewer: convert.ToUser(ctx, review.Reviewer, nil),
Repository: convert.ToRepo(ctx, review.Issue.Repo, permission),
Sender: convert.ToUser(ctx, review.Reviewer, nil),
Review: &api.ReviewPayload{
Type: string(reviewHookType),
Content: review.Content,
Expand Down

0 comments on commit 923bb52

Please sign in to comment.