Skip to content

Commit ef30544

Browse files
committed
add changes field in to GitHub PullRequestPayload.
1 parent cb4aa3d commit ef30544

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

github/payload.go

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3544,6 +3544,15 @@ type PublicPayload struct {
35443544
} `json:"sender"`
35453545
}
35463546

3547+
type PullRequestChanges struct {
3548+
Title *struct {
3549+
From string `json:"from"`
3550+
} `json:"title"`
3551+
Body *struct {
3552+
From string `json:"from"`
3553+
} `json:"body"`
3554+
}
3555+
35473556
// PullRequestPayload contains the information for GitHub's pull_request hook event
35483557
type PullRequestPayload struct {
35493558
Action string `json:"action"`
@@ -4006,8 +4015,9 @@ type PullRequestPayload struct {
40064015
Type string `json:"type"`
40074016
SiteAdmin bool `json:"site_admin"`
40084017
} `json:"sender"`
4009-
Assignee *Assignee `json:"assignee"`
4010-
RequestedReviewer *Assignee `json:"requested_reviewer"`
4018+
Changes *PullRequestChanges `json:"changes"`
4019+
Assignee *Assignee `json:"assignee"`
4020+
RequestedReviewer *Assignee `json:"requested_reviewer"`
40114021
RequestedTeam struct {
40124022
Name string `json:"name"`
40134023
ID int64 `json:"id"`

0 commit comments

Comments
 (0)