Skip to content

Commit e8574e3

Browse files
author
Joshua Fish
committed
revert changes to wrong structs
1 parent 6c7ea81 commit e8574e3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

github/payload.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ type CheckRunPayload struct {
187187
Watchers int64 `json:"watchers"`
188188
DefaultBranch string `json:"default_branch"`
189189
} `json:"repository"`
190-
Installation *struct {
190+
Installation struct {
191191
ID int64 `json:"id"`
192-
} `json:"installation"`
192+
} `json:"installation,omitempty"`
193193
Sender struct {
194194
Login string `json:"login"`
195195
ID int64 `json:"id"`
@@ -362,9 +362,9 @@ type CheckSuitePayload struct {
362362
Watchers int64 `json:"watchers"`
363363
DefaultBranch string `json:"default_branch"`
364364
} `json:"repository"`
365-
Installation *struct {
365+
Installation struct {
366366
ID int64 `json:"id"`
367-
} `json:"installation"`
367+
} `json:"installation,omitempty"`
368368
Sender struct {
369369
Login string `json:"login"`
370370
ID int64 `json:"id"`

0 commit comments

Comments
 (0)