Skip to content

Commit 4b4d7a1

Browse files
fix check suite payload
1 parent 5212de2 commit 4b4d7a1

File tree

1 file changed

+33
-11
lines changed

1 file changed

+33
-11
lines changed

github/payload.go

+33-11
Original file line numberDiff line numberDiff line change
@@ -216,17 +216,39 @@ type CheckRunPayload struct {
216216
type CheckSuitePayload struct {
217217
Action string `json:"action"`
218218
CheckSuite struct {
219-
ID int64 `json:"id"`
220-
NodeID string `json:"node_id"`
221-
HeadBranch string `json:"head_branch"`
222-
HeadSHA string `json:"head_sha"`
223-
Status string `json:"status"`
224-
Conclusion string `json:"conclusion"`
225-
URL string `json:"url"`
226-
Before string `json:"before"`
227-
After string `json:"after"`
228-
PullRequests []PullRequestPayload `json:"pull_requests"`
229-
App struct {
219+
ID int64 `json:"id"`
220+
NodeID string `json:"node_id"`
221+
HeadBranch string `json:"head_branch"`
222+
HeadSHA string `json:"head_sha"`
223+
Status string `json:"status"`
224+
Conclusion string `json:"conclusion"`
225+
URL string `json:"url"`
226+
Before string `json:"before"`
227+
After string `json:"after"`
228+
PullRequests []struct {
229+
URL string `json:"url"`
230+
ID int64 `json:"id"`
231+
Number int64 `json:"number"`
232+
Head struct {
233+
Ref string `json:"ref"`
234+
SHA string `json:"sha"`
235+
Repo struct {
236+
ID int64 `json:"id"`
237+
URL string `json:"url"`
238+
Name string `json:"name"`
239+
} `json:"repo"`
240+
} `json:"head"`
241+
Base struct {
242+
Ref string `json:"ref"`
243+
SHA string `json:"sha"`
244+
Repo struct {
245+
ID int64 `json:"id"`
246+
URL string `json:"url"`
247+
Name string `json:"name"`
248+
} `json:"repo"`
249+
} `json:"base"`
250+
} `json:"pull_requests"`
251+
App struct {
230252
ID int64 `json:"id"`
231253
NodeID string `json:"node_id"`
232254
Owner struct {

0 commit comments

Comments
 (0)