File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -1374,13 +1374,6 @@ type MilestonePayload struct {
13741374// OrganizationPayload contains the information for GitHub's organization hook event
13751375type OrganizationPayload struct {
13761376 Action string `json:"action"`
1377- Invitation struct {
1378- ID int64 `json:"id"`
1379- NodeID string `json:"node_id"`
1380- Login string `json:"login"`
1381- Email * string `json:"email"`
1382- Role string `json:"role"`
1383- } `json:"invitation"`
13841377 Membership struct {
13851378 URL string `json:"url"`
13861379 State string `json:"state"`
@@ -1441,6 +1434,7 @@ type OrganizationPayload struct {
14411434 Type string `json:"type"`
14421435 SiteAdmin bool `json:"site_admin"`
14431436 } `json:"sender"`
1437+ Installation Installation `json:"installation"`
14441438}
14451439
14461440// OrgBlockPayload contains the information for GitHub's org_block hook event
@@ -1500,6 +1494,7 @@ type OrgBlockPayload struct {
15001494 Type string `json:"type"`
15011495 SiteAdmin bool `json:"site_admin"`
15021496 } `json:"sender"`
1497+ Installation Installation `json:"installation"`
15031498}
15041499
15051500// PageBuildPayload contains the information for GitHub's page_build hook event
Original file line number Diff line number Diff line change @@ -114,16 +114,21 @@ func TestPayloads(t *testing.T) {
114114 filename : "milestone.json" ,
115115 typ : & MilestonePayload {},
116116 },
117+ {
118+ name : "MetaPayload" ,
119+ filename : "meta.json" ,
120+ typ : & MetaPayload {},
121+ },
117122 {
118123 name : "OrgBlockPayload" ,
119124 filename : "org-block.json" ,
120125 typ : & OrgBlockPayload {},
121126 },
122- // {
123- // name: "OrganizationPayload",
124- // filename: "organization.json",
125- // typ: &OrganizationPayload{},
126- // },
127+ {
128+ name : "OrganizationPayload" ,
129+ filename : "organization.json" ,
130+ typ : & OrganizationPayload {},
131+ },
127132 // {
128133 // name: "PageBuildPayload",
129134 // filename: "page-build.json",
You can’t perform that action at this time.
0 commit comments