-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
Both https://docs.github.com/en/rest/reference/checks#list-check-runs-for-a-git-reference and https://docs.github.com/en/rest/reference/checks#list-check-suites-for-a-git-reference endpoints document the following query parameter:
| Name | Type | In | Description |
|---|---|---|---|
| app_id | integer | query | Filters check suites by GitHub App id. |
(Though the former is missing a description; perhaps it was added at a different time.)
The ListCheckSuiteOptions struct already has this field:
Line 298 in fef3638
| AppID *int `url:"app_id,omitempty"` // Filters check suites by GitHub App id. |
I wanted to report that there's an opportunity to add it to the ListCheckRunsOptions struct for listing check runs, because it's not there yet:
Lines 232 to 239 in fef3638
| // ListCheckRunsOptions represents parameters to list check runs. | |
| type ListCheckRunsOptions struct { | |
| CheckName *string `url:"check_name,omitempty"` // Returns check runs with the specified name. | |
| Status *string `url:"status,omitempty"` // Returns check runs with the specified status. Can be one of "queued", "in_progress", or "completed". | |
| Filter *string `url:"filter,omitempty"` // Filters check runs by their completed_at timestamp. Can be one of "latest" (returning the most recent check runs) or "all". Default: "latest" | |
| ListOptions | |
| } |
gmlewis