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