Skip to content

Commit

Permalink
add changes field in to GitHub PullRequestPayload.
Browse files Browse the repository at this point in the history
  • Loading branch information
yinxulai committed Apr 28, 2020
1 parent cb4aa3d commit ef30544
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions github/payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -3544,6 +3544,15 @@ type PublicPayload struct {
} `json:"sender"`
}

type PullRequestChanges struct {
Title *struct {
From string `json:"from"`
} `json:"title"`
Body *struct {
From string `json:"from"`
} `json:"body"`
}

// PullRequestPayload contains the information for GitHub's pull_request hook event
type PullRequestPayload struct {
Action string `json:"action"`
Expand Down Expand Up @@ -4006,8 +4015,9 @@ type PullRequestPayload struct {
Type string `json:"type"`
SiteAdmin bool `json:"site_admin"`
} `json:"sender"`
Assignee *Assignee `json:"assignee"`
RequestedReviewer *Assignee `json:"requested_reviewer"`
Changes *PullRequestChanges `json:"changes"`
Assignee *Assignee `json:"assignee"`
RequestedReviewer *Assignee `json:"requested_reviewer"`
RequestedTeam struct {
Name string `json:"name"`
ID int64 `json:"id"`
Expand Down

0 comments on commit ef30544

Please sign in to comment.