restructuring
This commit is contained in:
+10
-13
@@ -3544,16 +3544,6 @@ type PublicPayload struct {
|
|||||||
} `json:"sender"`
|
} `json:"sender"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// PullRequestChanges contains the information for GitHub's pull_request hook event
|
|
||||||
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"`
|
||||||
@@ -4016,9 +4006,16 @@ 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"`
|
Changes *struct {
|
||||||
Assignee *Assignee `json:"assignee"`
|
Title *struct {
|
||||||
RequestedReviewer *Assignee `json:"requested_reviewer"`
|
From string `json:"from"`
|
||||||
|
} `json:"title"`
|
||||||
|
Body *struct {
|
||||||
|
From string `json:"from"`
|
||||||
|
} `json:"body"`
|
||||||
|
} `json:"changes"`
|
||||||
|
Assignee *Assignee `json:"assignee"`
|
||||||
|
RequestedReviewer *Assignee `json:"requested_reviewer"`
|
||||||
RequestedTeam struct {
|
RequestedTeam struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
ID int64 `json:"id"`
|
ID int64 `json:"id"`
|
||||||
|
|||||||
Reference in New Issue
Block a user