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]), } }