Skip to content

Commit

Permalink
fix check suite payload
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-thacker-nullify committed Dec 6, 2023
1 parent 5212de2 commit 4b4d7a1
Showing 1 changed file with 33 additions and 11 deletions.
44 changes: 33 additions & 11 deletions github/payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,17 +216,39 @@ type CheckRunPayload struct {
type CheckSuitePayload struct {
Action string `json:"action"`
CheckSuite struct {
ID int64 `json:"id"`
NodeID string `json:"node_id"`
HeadBranch string `json:"head_branch"`
HeadSHA string `json:"head_sha"`
Status string `json:"status"`
Conclusion string `json:"conclusion"`
URL string `json:"url"`
Before string `json:"before"`
After string `json:"after"`
PullRequests []PullRequestPayload `json:"pull_requests"`
App struct {
ID int64 `json:"id"`
NodeID string `json:"node_id"`
HeadBranch string `json:"head_branch"`
HeadSHA string `json:"head_sha"`
Status string `json:"status"`
Conclusion string `json:"conclusion"`
URL string `json:"url"`
Before string `json:"before"`
After string `json:"after"`
PullRequests []struct {
URL string `json:"url"`
ID int64 `json:"id"`
Number int64 `json:"number"`
Head struct {
Ref string `json:"ref"`
SHA string `json:"sha"`
Repo struct {
ID int64 `json:"id"`
URL string `json:"url"`
Name string `json:"name"`
} `json:"repo"`
} `json:"head"`
Base struct {
Ref string `json:"ref"`
SHA string `json:"sha"`
Repo struct {
ID int64 `json:"id"`
URL string `json:"url"`
Name string `json:"name"`
} `json:"repo"`
} `json:"base"`
} `json:"pull_requests"`
App struct {
ID int64 `json:"id"`
NodeID string `json:"node_id"`
Owner struct {
Expand Down

0 comments on commit 4b4d7a1

Please sign in to comment.