Skip to content

Commit

Permalink
Support GitHub child teams in team payload
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Rivera committed May 14, 2020
1 parent 5be09ce commit c31b743
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions github/payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -5669,19 +5669,8 @@ type StatusPayload struct {

// TeamPayload contains the information for GitHub's team hook event
type TeamPayload struct {
Action string `json:"action"`
Team struct {
Name string `json:"name"`
ID int64 `json:"id"`
NodeID string `json:"node_id"`
Slug string `json:"slug"`
Description string `json:"description"`
Privacy string `json:"privacy"`
URL string `json:"url"`
MembersURL string `json:"members_url"`
RepositoriesURL string `json:"repositories_url"`
Permission string `json:"permission"`
} `json:"team"`
Action string `json:"action"`
Team *Team `json:"team"`
Organization struct {
Login string `json:"login"`
ID int64 `json:"id"`
Expand Down

0 comments on commit c31b743

Please sign in to comment.