Skip to content

Commit c31b743

Browse files
author
Tyler Rivera
committed
Support GitHub child teams in team payload
1 parent 5be09ce commit c31b743

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

github/payload.go

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5669,19 +5669,8 @@ type StatusPayload struct {
56695669

56705670
// TeamPayload contains the information for GitHub's team hook event
56715671
type TeamPayload struct {
5672-
Action string `json:"action"`
5673-
Team struct {
5674-
Name string `json:"name"`
5675-
ID int64 `json:"id"`
5676-
NodeID string `json:"node_id"`
5677-
Slug string `json:"slug"`
5678-
Description string `json:"description"`
5679-
Privacy string `json:"privacy"`
5680-
URL string `json:"url"`
5681-
MembersURL string `json:"members_url"`
5682-
RepositoriesURL string `json:"repositories_url"`
5683-
Permission string `json:"permission"`
5684-
} `json:"team"`
5672+
Action string `json:"action"`
5673+
Team *Team `json:"team"`
56855674
Organization struct {
56865675
Login string `json:"login"`
56875676
ID int64 `json:"id"`

0 commit comments

Comments
 (0)