Skip to content

Commit e06e056

Browse files
author
Joshua Fish
committed
added changes for installation id struct
1 parent 69430a8 commit e06e056

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

github/payload.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,9 @@ type CommitCommentPayload struct {
533533
Type string `json:"type"`
534534
SiteAdmin bool `json:"site_admin"`
535535
} `json:"sender"`
536+
Installation struct {
537+
ID int64 `json:"id"`
538+
} `json:"installation"`
536539
}
537540

538541
// CreatePayload contains the information for GitHub's create hook event
@@ -2117,6 +2120,9 @@ type IssueCommentPayload struct {
21172120
Type string `json:"type"`
21182121
SiteAdmin bool `json:"site_admin"`
21192122
} `json:"sender"`
2123+
Installation struct {
2124+
ID int64 `json:"id"`
2125+
} `json:"installation"`
21202126
}
21212127

21222128
// IssuesPayload contains the information for GitHub's issues hook event
@@ -2289,8 +2295,11 @@ type IssuesPayload struct {
22892295
Type string `json:"type"`
22902296
SiteAdmin bool `json:"site_admin"`
22912297
} `json:"sender"`
2292-
Assignee *Assignee `json:"assignee"`
2293-
Label *Label `json:"label"`
2298+
Assignee *Assignee `json:"assignee"`
2299+
Label *Label `json:"label"`
2300+
Installation struct {
2301+
ID int64 `json:"id"`
2302+
} `json:"installation"`
22942303
}
22952304

22962305
// LabelPayload contains the information for GitHub's label hook event

0 commit comments

Comments
 (0)