From 7cfcbad86d018751c85489c266b31fe9ed9b43c5 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 11 Feb 2024 05:08:41 -0500 Subject: [PATCH] fix: add missing data in PullRequestEvent --- api/convert_event.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/api/convert_event.go b/api/convert_event.go index d85093a..527236c 100644 --- a/api/convert_event.go +++ b/api/convert_event.go @@ -7,8 +7,14 @@ import ( func convertPullRequestEvent(event *structs.PullRequestPayload) *github.PullRequestEvent { return &github.PullRequestEvent{ - Action: stringPtr(translatePrAction(event.Action)), - PullRequest: convertPullRequest(event.PullRequest), - Repo: convertRepo(event.Repository), + Action: stringPtr(translatePrAction(event.Action)), + PullRequest: convertPullRequest(event.PullRequest), + Repo: convertRepo(event.Repository), + Assignee: convertUser(event.PullRequest.Assignee), + Number: intPtr(int(event.Index)), + Changes: convertChanges(event.Changes), + RequestedReviewer: convertUser(event.PullRequest.RequestedReviewers[0]), + Sender: convertUser(event.Sender), + Label: convertLabel(event.PullRequest.Labels[0]), } }