add changes field in to GitHub PullRequestPayload.

This commit is contained in:
yinxulai
2020-04-28 09:47:11 +08:00
parent cb4aa3d145
commit ef305446ee
+10
View File
@@ -3544,6 +3544,15 @@ type PublicPayload struct {
} `json:"sender"` } `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 // PullRequestPayload contains the information for GitHub's pull_request hook event
type PullRequestPayload struct { type PullRequestPayload struct {
Action string `json:"action"` Action string `json:"action"`
@@ -4006,6 +4015,7 @@ type PullRequestPayload struct {
Type string `json:"type"` Type string `json:"type"`
SiteAdmin bool `json:"site_admin"` SiteAdmin bool `json:"site_admin"`
} `json:"sender"` } `json:"sender"`
Changes *PullRequestChanges `json:"changes"`
Assignee *Assignee `json:"assignee"` Assignee *Assignee `json:"assignee"`
RequestedReviewer *Assignee `json:"requested_reviewer"` RequestedReviewer *Assignee `json:"requested_reviewer"`
RequestedTeam struct { RequestedTeam struct {