Skip to content

Commit

Permalink
feat: add 'doer' to 'pullRequest' conversion for better PR review his…
Browse files Browse the repository at this point in the history
…tory
  • Loading branch information
Makonike committed Sep 24, 2024
1 parent 580e215 commit 4156990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/webhook/notifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ func (m *webhookNotifier) UpdateComment(ctx context.Context, doer *user_model.Us
var pullRequest *api.PullRequest
if c.Issue.IsPull {
eventType = webhook_module.HookEventPullRequestComment
pullRequest = convert.ToAPIPullRequest(ctx, c.Issue.PullRequest, nil)
pullRequest = convert.ToAPIPullRequest(ctx, c.Issue.PullRequest, doer)
} else {
eventType = webhook_module.HookEventIssueComment
}
Expand Down

0 comments on commit 4156990

Please sign in to comment.