fix: add missing data in PullRequestEvent
This commit is contained in:
parent
e1d8e122ce
commit
7cfcbad86d
|
@ -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]),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue