Skip to content

Commit 61716b8

Browse files
Fish-NullifyJoshua Fish
and
Joshua Fish
authored
fix: Installation Struct Missing for CommitCommentPayload, IssueCommentPayload and IssuesPayload (#178)
This pull request fixes issue #177 --------- Co-authored-by: Joshua Fish <joshua.fish@nullify.com>
1 parent ef5260a commit 61716b8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

github/payload.go

Lines changed: 9 additions & 0 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,6 +2295,9 @@ type IssuesPayload struct {
22892295
Type string `json:"type"`
22902296
SiteAdmin bool `json:"site_admin"`
22912297
} `json:"sender"`
2298+
Installation *struct {
2299+
ID int64 `json:"id"`
2300+
} `json:"installation"`
22922301
Assignee *Assignee `json:"assignee"`
22932302
Label *Label `json:"label"`
22942303
}

0 commit comments

Comments
 (0)