Skip to content

GitHub: Checks schemas

9 GitHub schemas with complete fields and constraints.

← Checks operations · All schemas

Create a check run — request body — body actions item

FieldTypePresenceDescription and constraints
$objectRoot
descriptionstringRequired within parentA short explanation of what this action would do. The maximum size is 40 characters.
Maximum length: 40
identifierstringRequired within parentA reference for the action on the integrator's system. The maximum size is 20 characters.
Maximum length: 20
labelstringRequired within parentThe text to be displayed on a button in the web UI. The maximum size is 20 characters.
Maximum length: 20

Create a check run — request body — body output annotations item

FieldTypePresenceDescription and constraints
$objectRoot
annotation_levelstringRequired within parentThe level of the annotation.
One of: notice, warning, failure
end_columnintegerOptionalThe end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.
end_lineintegerRequired within parentThe end line of the annotation.
messagestringRequired within parentA short description of the feedback for these lines of code. The maximum size is 64 KB.
pathstringRequired within parentThe path of the file to add an annotation to. For example, `assets/css/main.css`.
raw_detailsstringOptionalDetails about this annotation. The maximum size is 64 KB.
start_columnintegerOptionalThe start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.
start_lineintegerRequired within parentThe start line of the annotation. Line numbers start at 1.
titlestringOptionalThe title that represents the annotation. The maximum size is 255 characters.

Get a check run — response body

FieldTypePresenceDescription and constraints
$objectRootA check performed on the code of a given code change
appModelRequired within parentExpand Get an app — response body
check_suiteJSONRequired within parent
check_suite (anyOf 1)objectAlternative
check_suite (anyOf 1).idJSONRequired within parent
check_suite (anyOf 1).id (anyOf 1)integerAlternative
check_suite (anyOf 1).id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
check_suite (anyOf 2)nullAlternative
completed_atJSONRequired within parent
completed_at (anyOf 1)stringAlternativeFormat: date-time
completed_at (anyOf 2)nullAlternative
conclusionJSONRequired within parent
conclusion (anyOf 1)stringAlternativeKnown values: success, failure, neutral, cancelled, skipped, timed_out, action_required
conclusion (anyOf 2)nullAlternative
deploymentModelOptionalExpand Get a check run — response body — deployment
details_urlJSONRequired within parent
details_url (anyOf 1)stringAlternative
details_url (anyOf 2)nullAlternative
external_idJSONRequired within parent
external_id (anyOf 1)stringAlternative
external_id (anyOf 2)nullAlternative
head_shastringRequired within parentThe SHA of the commit that is being checked.
html_urlJSONRequired within parent
html_url (anyOf 1)stringAlternative
html_url (anyOf 2)nullAlternative
idJSONRequired within parent
id (anyOf 1)integerAlternativeThe id of the check.
Format: int64
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
namestringRequired within parentThe name of the check.
node_idstringRequired within parent
outputobjectRequired within parent
output.annotations_countJSONRequired within parent
output.annotations_count (anyOf 1)integerAlternative
output.annotations_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
output.annotations_urlstringRequired within parentFormat: uri
output.summaryJSONRequired within parent
output.summary (anyOf 1)stringAlternative
output.summary (anyOf 2)nullAlternative
output.textJSONRequired within parent
output.text (anyOf 1)stringAlternative
output.text (anyOf 2)nullAlternative
output.titleJSONRequired within parent
output.title (anyOf 1)stringAlternative
output.title (anyOf 2)nullAlternative
pull_requestsarrayRequired within parentPull requests that are open with a `head_sha` or `head_branch` that matches the check. The returned pull requests do not necessarily indicate pull requests that triggered the check.
pull_requests[]ModelEach itemExpand Get a check run — response body — pull requests item
started_atJSONRequired within parent
started_at (anyOf 1)stringAlternativeFormat: date-time
started_at (anyOf 2)nullAlternative
statusstringRequired within parentThe phase of the lifecycle that the check is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check runs.
Known values: queued, in_progress, completed, waiting, requested, pending
urlstringRequired within parent

Referenced models: Get a check run — response body — deployment, Get an app — response body, Get a check run — response body — pull requests item

Get a check run — response body — deployment

FieldTypePresenceDescription and constraints
$objectRootA deployment created as the result of an Actions check run from a workflow that references an environment
created_atstringRequired within parentFormat: date-time
descriptionJSONRequired within parent
description (anyOf 1)stringAlternative
description (anyOf 2)nullAlternative
environmentstringRequired within parentName for the target deployment environment.
idJSONRequired within parent
id (anyOf 1)integerAlternativeUnique identifier of the deployment
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
node_idstringRequired within parent
original_environmentstringOptional
performed_via_github_appModelOptionalExpand Get an app — response body
production_environmentbooleanOptionalSpecifies if the given environment is one that end-users directly interact with. Default: false.
repository_urlstringRequired within parentFormat: uri
statuses_urlstringRequired within parentFormat: uri
taskstringRequired within parentParameter to specify a task to execute
transient_environmentbooleanOptionalSpecifies if the given environment is will no longer exist at some point in the future. Default: false.
updated_atstringRequired within parentFormat: date-time
urlstringRequired within parentFormat: uri

Referenced models: Get an app — response body

Get a check run — response body — pull requests item

FieldTypePresenceDescription and constraints
$objectRoot
baseobjectRequired within parent
base.refstringRequired within parent
base.repoobjectRequired within parent
base.repo.idJSONRequired within parent
base.repo.id (anyOf 1)integerAlternativeFormat: int64
base.repo.id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
base.repo.namestringRequired within parent
base.repo.urlstringRequired within parent
base.shastringRequired within parent
headobjectRequired within parent
head.refstringRequired within parent
head.repoobjectRequired within parent
head.repo.idJSONRequired within parent
head.repo.id (anyOf 1)integerAlternativeFormat: int64
head.repo.id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
head.repo.namestringRequired within parent
head.repo.urlstringRequired within parent
head.shastringRequired within parent
idJSONRequired within parent
id (anyOf 1)integerAlternativeFormat: int64
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
numberJSONRequired within parent
number (anyOf 1)integerAlternative
number (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
urlstringRequired within parent

Get a check suite — response body

FieldTypePresenceDescription and constraints
$objectRootA suite of checks performed on the code of a given code change
afterJSONRequired within parent
after (anyOf 1)stringAlternative
after (anyOf 2)nullAlternative
appModelRequired within parentExpand Get an app — response body
beforeJSONRequired within parent
before (anyOf 1)stringAlternative
before (anyOf 2)nullAlternative
check_runs_urlstringRequired within parent
conclusionJSONRequired within parent
conclusion (anyOf 1)stringAlternativeKnown values: success, failure, neutral, cancelled, skipped, timed_out, action_required, startup_failure, stale
conclusion (anyOf 2)nullAlternative
created_atJSONRequired within parent
created_at (anyOf 1)stringAlternativeFormat: date-time
created_at (anyOf 2)nullAlternative
head_branchJSONRequired within parent
head_branch (anyOf 1)stringAlternative
head_branch (anyOf 2)nullAlternative
head_commitModelRequired within parentExpand Get a check suite — response body — head commit
head_shastringRequired within parentThe SHA of the head commit that is being checked.
idJSONRequired within parent
id (anyOf 1)integerAlternativeFormat: int64
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
latest_check_runs_countJSONRequired within parent
latest_check_runs_count (anyOf 1)integerAlternative
latest_check_runs_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
node_idstringRequired within parent
pull_requestsJSONRequired within parent
pull_requests (anyOf 1)arrayAlternative
pull_requests (anyOf 1)[]ModelEach itemExpand Get a check run — response body — pull requests item
pull_requests (anyOf 2)nullAlternative
repositoryModelRequired within parentExpand Transfer a repository — response body
rerequestablebooleanOptional
runs_rerequestablebooleanOptional
statusJSONRequired within parent
status (anyOf 1)stringAlternativeThe phase of the lifecycle that the check suite is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check suites.
Known values: queued, in_progress, completed, waiting, requested, pending
status (anyOf 2)nullAlternative
updated_atJSONRequired within parent
updated_at (anyOf 1)stringAlternativeFormat: date-time
updated_at (anyOf 2)nullAlternative
urlJSONRequired within parent
url (anyOf 1)stringAlternative
url (anyOf 2)nullAlternative

Referenced models: Get an app — response body, Transfer a repository — response body, Get a check run — response body — pull requests item, Get a check suite — response body — head commit

Get a check suite — response body — head commit

FieldTypePresenceDescription and constraints
$objectRootA commit.
authorJSONRequired within parent
author (anyOf 1)objectAlternativeInformation about the Git author
author (anyOf 1).emailstringRequired within parentGit email address of the commit's author
Format: email
author (anyOf 1).namestringRequired within parentName of the commit's author
author (anyOf 2)nullAlternative
committerJSONRequired within parent
committer (anyOf 1)objectAlternativeInformation about the Git committer
committer (anyOf 1).emailstringRequired within parentGit email address of the commit's committer
Format: email
committer (anyOf 1).namestringRequired within parentName of the commit's committer
committer (anyOf 2)nullAlternative
idstringRequired within parentSHA for the commit
messagestringRequired within parentMessage describing the purpose of the commit
timestampstringRequired within parentTimestamp of the commit
Format: date-time
tree_idstringRequired within parentSHA for the commit's tree

List check run annotations — response body — item

FieldTypePresenceDescription and constraints
$objectRootCheck Annotation
annotation_levelJSONRequired within parent
annotation_level (anyOf 1)stringAlternative
annotation_level (anyOf 2)nullAlternative
blob_hrefstringRequired within parent
end_columnJSONRequired within parent
end_column (anyOf 1)JSONAlternative
end_column (anyOf 1) (anyOf 1)integerAlternative
end_column (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
end_column (anyOf 2)nullAlternative
end_lineJSONRequired within parent
end_line (anyOf 1)integerAlternative
end_line (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
messageJSONRequired within parent
message (anyOf 1)stringAlternative
message (anyOf 2)nullAlternative
pathstringRequired within parent
raw_detailsJSONRequired within parent
raw_details (anyOf 1)stringAlternative
raw_details (anyOf 2)nullAlternative
start_columnJSONRequired within parent
start_column (anyOf 1)JSONAlternative
start_column (anyOf 1) (anyOf 1)integerAlternative
start_column (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
start_column (anyOf 2)nullAlternative
start_lineJSONRequired within parent
start_line (anyOf 1)integerAlternative
start_line (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
titleJSONRequired within parent
title (anyOf 1)stringAlternative
title (anyOf 2)nullAlternative

Update repository preferences for check suites — response body

FieldTypePresenceDescription and constraints
$objectRootCheck suite configuration preferences for a repository.
preferencesobjectRequired within parent
preferences.auto_trigger_checksarrayOptional
preferences.auto_trigger_checks[]objectEach item
preferences.auto_trigger_checks[].app_idJSONRequired within parent
preferences.auto_trigger_checks[].app_id (anyOf 1)integerAlternative
preferences.auto_trigger_checks[].app_id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
preferences.auto_trigger_checks[].settingbooleanRequired within parent
repositoryModelRequired within parentExpand Transfer a repository — response body

Referenced models: Transfer a repository — response body

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.