Skip to content

Commit f26d877

Browse files
author
Jon Rumion
committed
Fix payload
1 parent 2935a7d commit f26d877

File tree

1 file changed

+12
-46
lines changed

1 file changed

+12
-46
lines changed

github/payload.go

Lines changed: 12 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -6060,60 +6060,26 @@ type TeamPayload struct {
60606060
Team *Team `json:"team"`
60616061
Changes struct {
60626062
Description struct {
6063-
Type string `json:"type"`
6064-
From struct {
6065-
Description string `json:"description"`
6066-
Type string `json:"type"`
6067-
} `json:"from"`
6068-
Required []string `json:"required"`
6069-
} `json:"description"`
6063+
From string `json:"from"`
6064+
} `json:"description,omitempty"`
60706065
Name struct {
6071-
Type string `json:"type"`
6072-
From struct {
6073-
Description string `json:"description"`
6074-
Type string `json:"type"`
6075-
} `json:"from"`
6076-
Required []string `json:"required"`
6077-
} `json:"name"`
6066+
From string `json:"from"`
6067+
} `json:"name,omitempty"`
60786068
Privacy struct {
6079-
Type string `json:"type"`
6080-
From struct {
6081-
Description string `json:"description"`
6082-
Type string `json:"type"`
6083-
} `json:"from"`
6084-
Required []string `json:"required"`
6085-
} `json:"privacy"`
6069+
From string `json:"from"`
6070+
} `json:"privacy,omitempty"`
60866071
NotificationSetting struct {
6087-
Type string `json:"type"`
6088-
From struct {
6089-
Description string `json:"description"`
6090-
Type string `json:"type"`
6091-
} `json:"from"`
6092-
Required []string `json:"required"`
6093-
} `json:"notification_setting"`
6072+
From string `json:"from"`
6073+
} `json:"notification_setting,omitempty"`
60946074
Repository struct {
6095-
Type string `json:"type"`
60966075
Permissions struct {
6097-
Type string `json:"type"`
60986076
From struct {
6099-
Type string `json:"type"`
6100-
Admin struct {
6101-
Description string `json:"description"`
6102-
Type string `json:"type"`
6103-
} `json:"admin"`
6104-
Pull struct {
6105-
Description string `json:"description"`
6106-
Type string `json:"type"`
6107-
} `json:"pull"`
6108-
Push struct {
6109-
Description string `json:"description"`
6110-
Type string `json:"type"`
6111-
} `json:"push"`
6077+
Admin bool `json:"admin"`
6078+
Pull bool `json:"pull"`
6079+
Push bool `json:"push"`
61126080
} `json:"from"`
6113-
Required []string `json:"required"`
61146081
} `json:"permissions"`
6115-
Required []string `json:"required"`
6116-
} `json:"repository"`
6082+
} `json:"repository,omitempty"`
61176083
} `json:"changes"`
61186084
Organization struct {
61196085
Login string `json:"login"`

0 commit comments

Comments
 (0)