// CreateCheckRunOptions sets up parameters needed to create a CheckRun.
typeCreateCheckRunOptionsstruct{
Namestring`json:"name"`// The name of the check (e.g., "code-coverage"). (Required.)
HeadSHAstring`json:"head_sha"`// The SHA of the commit. (Required.)
DetailsURL*string`json:"details_url,omitempty"`// The URL of the integrator's site that has the full details of the check. (Optional.)
ExternalID*string`json:"external_id,omitempty"`// A reference for the run on the integrator's system. (Optional.)
Status*string`json:"status,omitempty"`// The current status. Can be one of "queued", "in_progress", or "completed". Default: "queued". (Optional.)
Conclusion*string`json:"conclusion,omitempty"`// Can be one of "success", "failure", "neutral", "cancelled", "skipped", "timed_out", or "action_required". (Optional. Required if you provide a status of "completed".)
StartedAt*Timestamp`json:"started_at,omitempty"`// The time that the check run began. (Optional.)
CompletedAt*Timestamp`json:"completed_at,omitempty"`// The time the check completed. (Optional. Required if you provide conclusion.)
Output*CheckRunOutput`json:"output,omitempty"`// Provide descriptive details about the run. (Optional)
Actions[]*CheckRunAction`json:"actions,omitempty"`// Possible further actions the integrator can perform, which a user may trigger. (Optional.)
}
// CheckRunAction exposes further actions the integrator can perform, which a user may trigger.
typeCheckRunActionstruct{
Labelstring`json:"label"`// The text to be displayed on a button in the web UI. The maximum size is 20 characters. (Required.)
Descriptionstring`json:"description"`// A short explanation of what this action would do. The maximum size is 40 characters. (Required.)
Identifierstring`json:"identifier"`// A reference for the action on the integrator's system. The maximum size is 20 characters. (Required.)
}
// CreateCheckRun creates a check run for repository.
// UpdateCheckRunOptions sets up parameters needed to update a CheckRun.
typeUpdateCheckRunOptionsstruct{
Namestring`json:"name"`// The name of the check (e.g., "code-coverage"). (Required.)
DetailsURL*string`json:"details_url,omitempty"`// The URL of the integrator's site that has the full details of the check. (Optional.)
ExternalID*string`json:"external_id,omitempty"`// A reference for the run on the integrator's system. (Optional.)
Status*string`json:"status,omitempty"`// The current status. Can be one of "queued", "in_progress", or "completed". Default: "queued". (Optional.)
Conclusion*string`json:"conclusion,omitempty"`// Can be one of "success", "failure", "neutral", "cancelled", "skipped", "timed_out", or "action_required". (Optional. Required if you provide a status of "completed".)
CompletedAt*Timestamp`json:"completed_at,omitempty"`// The time the check completed. (Optional. Required if you provide conclusion.)
Output*CheckRunOutput`json:"output,omitempty"`// Provide descriptive details about the run. (Optional)
Actions[]*CheckRunAction`json:"actions,omitempty"`// Possible further actions the integrator can perform, which a user may trigger. (Optional.)
}
// UpdateCheckRun updates a check run for a specific commit in a repository.
// ListCheckRunsOptions represents parameters to list check runs.
typeListCheckRunsOptionsstruct{
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
}
// ListCheckRunsResults represents the result of a check run list.
typeListCheckRunsResultsstruct{
Total*int`json:"total_count,omitempty"`
CheckRuns[]*CheckRun`json:"check_runs,omitempty"`
}
// ListCheckRunsForRef lists check runs for a specific ref.
// AutoTriggerCheck enables or disables automatic creation of CheckSuite events upon pushes to the repository.
typeAutoTriggerCheckstruct{
AppID*int64`json:"app_id,omitempty"`// The id of the GitHub App. (Required.)
Setting*bool`json:"setting,omitempty"`// Set to "true" to enable automatic creation of CheckSuite events upon pushes to the repository, or "false" to disable them. Default: "true" (Required.)
}
// CheckSuitePreferenceOptions set options for check suite preferences for a repository.
typeCheckSuitePreferenceOptionsstruct{
AutoTriggerChecks[]*AutoTriggerCheck`json:"auto_trigger_checks,omitempty"`// A slice of auto trigger checks that can be set for a check suite in a repository.
}
// CheckSuitePreferenceResults represents the results of the preference set operation.
// PreferenceList represents a list of auto trigger checks for repository
typePreferenceListstruct{
AutoTriggerChecks[]*AutoTriggerCheck`json:"auto_trigger_checks,omitempty"`// A slice of auto trigger checks that can be set for a check suite in a repository.
}
// SetCheckSuitePreferences changes the default automatic flow when creating check suites.