fix: add missing data in PullRequestEvent

This commit is contained in:
Derrick Hammer 2024-02-11 05:08:41 -05:00
parent e1d8e122ce
commit 7cfcbad86d
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 9 additions and 3 deletions

View File

@ -10,5 +10,11 @@ func convertPullRequestEvent(event *structs.PullRequestPayload) *github.PullRequ
Action: stringPtr(translatePrAction(event.Action)), Action: stringPtr(translatePrAction(event.Action)),
PullRequest: convertPullRequest(event.PullRequest), PullRequest: convertPullRequest(event.PullRequest),
Repo: convertRepo(event.Repository), 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]),
} }
} }