Skip to content

Commit 3c38273

Browse files
authored
Merge pull request #128 from juliojimenez/checks-installation-id
fix: Add Installation struct to CheckSuitePayload and CheckRunPayload
2 parents ec227ef + 66bfeb5 commit 3c38273

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

github/payload.go

+6
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ type CheckRunPayload struct {
187187
Watchers int64 `json:"watchers"`
188188
DefaultBranch string `json:"default_branch"`
189189
} `json:"repository"`
190+
Installation struct {
191+
ID int64 `json:"id"`
192+
} `json:"installation,omitempty"`
190193
Sender struct {
191194
Login string `json:"login"`
192195
ID int64 `json:"id"`
@@ -359,6 +362,9 @@ type CheckSuitePayload struct {
359362
Watchers int64 `json:"watchers"`
360363
DefaultBranch string `json:"default_branch"`
361364
} `json:"repository"`
365+
Installation struct {
366+
ID int64 `json:"id"`
367+
} `json:"installation,omitempty"`
362368
Sender struct {
363369
Login string `json:"login"`
364370
ID int64 `json:"id"`

0 commit comments

Comments
 (0)