check_suite

This page was generated based on Github’s Documentation. See our welcome page for context and details.

Github Event check_suite #

Github Action Trigger #

source

Webhook event payloadActivity typesGITHUB_SHAGITHUB_REF
check_suitecompletedLast commit on default branchDefault branch

Note: More than one activity type triggers this event. For information about each activity type, see “Webhook events and payloads.” Although only the completed activity type is supported, specifying the activity type will keep your workflow specific if more activity types are added in the future. By default, all activity types trigger workflows that run on this event. You can limit your workflow runs to specific activity types using the types keyword. For more information, see “Workflow syntax for GitHub Actions.”

Note: This event will only trigger a workflow run if the workflow file is on the default branch.

Note: To prevent recursive workflows, this event does not trigger workflows if the check suite was created by GitHub Actions.

Runs your workflow when check suite activity occurs. A check suite is a collection of the check runs created for a specific commit. Check suites summarize the status and conclusion of the check runs that are in the suite. For information, see “Using the REST API to interact with checks.” For information about the check suite APIs, see “Objects” in the GraphQL API documentation or “REST API endpoints for checks.”

For example, you can run a workflow when a check suite has been completed.

on:
  check_suite:
    types: [completed]

Event Payload #

source

Activities: completed, requested, rerequested

Common Fields #

These fields are common to every event types available with this trigger.
fieldtyperequireddescription
github.event.check_suiteobjectrequired

The check_suite.

github.event.check_suite.afterstring or nullrequired
github.event.check_suite.appobjectrequired

GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.

github.event.check_suite.app.created_atstring or nullrequired
github.event.check_suite.app.descriptionstring or nullrequired
github.event.check_suite.app.eventsarray of stringsoptional

The list of events for the GitHub app Supported values are: branch_protection_rule, check_run, check_suite, code_scanning_alert, commit_comment, content_reference, create, delete, deployment, deployment_review, deployment_status, deploy_key, discussion, discussion_comment, fork, gollum, issues, issue_comment, label, member, membership, milestone, organization, org_block, page_build, project, project_card, project_column, public, pull_request, pull_request_review, pull_request_review_comment, push, registry_package, release, repository, repository_dispatch, secret_scanning_alert, star, status, team, team_add, watch, workflow_dispatch, workflow_run, merge_group, pull_request_review_thread, workflow_job, merge_queue_entry, security_and_analysis, projects_v2_item, secret_scanning_alert_location

github.event.check_suite.app.external_urlstring or nullrequired
github.event.check_suite.app.html_urlstringrequired
github.event.check_suite.app.idinteger or nullrequired

Unique identifier of the GitHub app

github.event.check_suite.app.namestringrequired

The name of the GitHub app

github.event.check_suite.app.node_idstringrequired
github.event.check_suite.app.ownerobject or nullrequired
github.event.check_suite.app.owner.avatar_urlstringoptional
github.event.check_suite.app.owner.deletedbooleanoptional
github.event.check_suite.app.owner.emailstring or nulloptional
github.event.check_suite.app.owner.events_urlstringoptional
github.event.check_suite.app.owner.followers_urlstringoptional
github.event.check_suite.app.owner.following_urlstringoptional
github.event.check_suite.app.owner.gists_urlstringoptional
github.event.check_suite.app.owner.gravatar_idstringoptional
github.event.check_suite.app.owner.html_urlstringoptional
github.event.check_suite.app.owner.idintegerrequired
github.event.check_suite.app.owner.loginstringrequired
github.event.check_suite.app.owner.namestringoptional
github.event.check_suite.app.owner.node_idstringoptional
github.event.check_suite.app.owner.organizations_urlstringoptional
github.event.check_suite.app.owner.received_events_urlstringoptional
github.event.check_suite.app.owner.repos_urlstringoptional
github.event.check_suite.app.owner.site_adminbooleanoptional
github.event.check_suite.app.owner.starred_urlstringoptional
github.event.check_suite.app.owner.subscriptions_urlstringoptional
github.event.check_suite.app.owner.typeBot, User, Organizationoptional
github.event.check_suite.app.owner.urlstringoptional
github.event.check_suite.app.permissionsobjectoptional

The set of permissions for the GitHub app

github.event.check_suite.app.permissions.actionsread, writeoptional
github.event.check_suite.app.permissions.administrationread, writeoptional
github.event.check_suite.app.permissions.checksread, writeoptional
github.event.check_suite.app.permissions.content_referencesread, writeoptional
github.event.check_suite.app.permissions.contentsread, writeoptional
github.event.check_suite.app.permissions.deploymentsread, writeoptional
github.event.check_suite.app.permissions.discussionsread, writeoptional
github.event.check_suite.app.permissions.emailsread, writeoptional
github.event.check_suite.app.permissions.environmentsread, writeoptional
github.event.check_suite.app.permissions.issuesread, writeoptional
github.event.check_suite.app.permissions.keysread, writeoptional
github.event.check_suite.app.permissions.membersread, writeoptional
github.event.check_suite.app.permissions.metadataread, writeoptional
github.event.check_suite.app.permissions.organization_administrationread, writeoptional
github.event.check_suite.app.permissions.organization_hooksread, writeoptional
github.event.check_suite.app.permissions.organization_packagesread, writeoptional
github.event.check_suite.app.permissions.organization_planread, writeoptional
github.event.check_suite.app.permissions.organization_projectsread, write, adminoptional
github.event.check_suite.app.permissions.organization_secretsread, writeoptional
github.event.check_suite.app.permissions.organization_self_hosted_runnersread, writeoptional
github.event.check_suite.app.permissions.organization_user_blockingread, writeoptional
github.event.check_suite.app.permissions.packagesread, writeoptional
github.event.check_suite.app.permissions.pagesread, writeoptional
github.event.check_suite.app.permissions.pull_requestsread, writeoptional
github.event.check_suite.app.permissions.repository_hooksread, writeoptional
github.event.check_suite.app.permissions.repository_projectsread, write, adminoptional
github.event.check_suite.app.permissions.secret_scanning_alertsread, writeoptional
github.event.check_suite.app.permissions.secretsread, writeoptional
github.event.check_suite.app.permissions.security_eventsread, writeoptional
github.event.check_suite.app.permissions.security_scanning_alertread, writeoptional
github.event.check_suite.app.permissions.single_fileread, writeoptional
github.event.check_suite.app.permissions.statusesread, writeoptional
github.event.check_suite.app.permissions.team_discussionsread, writeoptional
github.event.check_suite.app.permissions.vulnerability_alertsread, writeoptional
github.event.check_suite.app.permissions.workflowsread, writeoptional
github.event.check_suite.app.slugstringoptional

The slug name of the GitHub app

github.event.check_suite.app.updated_atstring or nullrequired
github.event.check_suite.beforestring or nullrequired
github.event.check_suite.check_runs_urlstringrequired
github.event.check_suite.created_atstringrequired
github.event.check_suite.head_branchstring or nullrequired

The head branch name the changes are on.

github.event.check_suite.head_commitobjectrequired
github.event.check_suite.head_commit.authorobjectrequired

Metaproperties for Git author/committer information.

github.event.check_suite.head_commit.author.datestringoptional
github.event.check_suite.head_commit.author.emailstring or nullrequired
github.event.check_suite.head_commit.author.namestringrequired

The git author’s name.

github.event.check_suite.head_commit.author.usernamestringoptional
github.event.check_suite.head_commit.committerobjectrequired

Metaproperties for Git author/committer information.

github.event.check_suite.head_commit.committer.datestringoptional
github.event.check_suite.head_commit.committer.emailstring or nullrequired
github.event.check_suite.head_commit.committer.namestringrequired

The git author’s name.

github.event.check_suite.head_commit.committer.usernamestringoptional
github.event.check_suite.head_commit.idstringrequired
github.event.check_suite.head_commit.messagestringrequired
github.event.check_suite.head_commit.timestampstringrequired
github.event.check_suite.head_commit.tree_idstringrequired
github.event.check_suite.head_shastringrequired

The SHA of the head commit that is being checked.

github.event.check_suite.idintegerrequired
github.event.check_suite.latest_check_runs_countintegerrequired
github.event.check_suite.node_idstringrequired
github.event.check_suite.pull_requestsarray of objectsrequired

An array of pull requests that match this check suite. A pull request matches a check suite if they have the same head_sha and head_branch. When the check suite’s head_branch is in a forked repository it will be null and the pull_requests array will be empty.

github.event.check_suite.pull_requests.baseobjectrequired
github.event.check_suite.pull_requests.base.refstringrequired
github.event.check_suite.pull_requests.base.repoobjectrequired
github.event.check_suite.pull_requests.base.repo.idintegerrequired
github.event.check_suite.pull_requests.base.repo.namestringrequired
github.event.check_suite.pull_requests.base.repo.urlstringrequired
github.event.check_suite.pull_requests.base.shastringrequired
github.event.check_suite.pull_requests.headobjectrequired
github.event.check_suite.pull_requests.head.refstringrequired
github.event.check_suite.pull_requests.head.repoobjectrequired
github.event.check_suite.pull_requests.head.repo.idintegerrequired
github.event.check_suite.pull_requests.head.repo.namestringrequired
github.event.check_suite.pull_requests.head.repo.urlstringrequired
github.event.check_suite.pull_requests.head.shastringrequired
github.event.check_suite.pull_requests.idintegerrequired
github.event.check_suite.pull_requests.numberintegerrequired
github.event.check_suite.pull_requests.urlstringrequired
github.event.check_suite.rerequestablebooleanoptional
github.event.check_suite.runs_rerequestablebooleanoptional
github.event.check_suite.updated_atstringrequired
github.event.check_suite.urlstringrequired

URL that points to the check suite API resource.

github.event.enterpriseobjectoptional

An enterprise on GitHub. Webhook payloads contain the enterprise property when the webhook is configured on an enterprise account or an organization that’s part of an enterprise account. For more information, see “About enterprise accounts."

github.event.installationobjectoptional

The GitHub App installation. Webhook payloads contain the installation property when the event is configured for and sent to a GitHub App. For more information, see “Using webhooks with GitHub Apps."

github.event.organizationobjectoptional

A GitHub organization. Webhook payloads contain the organization property when the webhook is configured for an organization, or when the event occurs from activity in a repository owned by an organization.

github.event.repositoryobjectrequired

The repository on GitHub where the event occurred. Webhook payloads contain the repository property when the event occurs from activity in a repository.

github.event.senderobjectrequired

The GitHub user that triggered the event. This property is included in every webhook payload.

completed #

This event occurs when there is activity relating to a check suite. For information about check suites, see "Getting started with the Checks API." For information about the APIs to manage check suites, see the GraphQL API documentation or "Check Suites" in the REST API documentation.

For activity relating to check runs, use the check_run event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Checks" permission. To receive the requested and rerequested event types, the app must have at least write-level access for the "Checks" permission. GitHub Apps with write-level access for the "Checks" permission are automatically subscribed to this webhook event.

Repository and organization webhooks only receive payloads for the completed event types in repositories.

Note: The API only looks for pushes in the repository where the check suite was created. Pushes to a branch in a forked repository are not detected and return an empty pull_requests array and a null value for head_branch.

fieldtyperequireddescription
github.event.actioncompletedrequired
github.event.check_suite.conclusionsuccess, failure, neutral, cancelled, timed_out, action_required, stale, None, skipped, startup_failurerequired

The summary conclusion for all check runs that are part of the check suite. This value will be null until the check run has completed.

github.event.check_suite.statusrequested, in_progress, completed, queued, None, pendingrequired

The summary status for all check runs that are part of the check suite. Can be requested, in_progress, or completed.

requested #

This event occurs when there is activity relating to a check suite. For information about check suites, see "Getting started with the Checks API." For information about the APIs to manage check suites, see the GraphQL API documentation or "Check Suites" in the REST API documentation.

For activity relating to check runs, use the check_run event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Checks" permission. To receive the requested and rerequested event types, the app must have at least write-level access for the "Checks" permission. GitHub Apps with write-level access for the "Checks" permission are automatically subscribed to this webhook event.

Repository and organization webhooks only receive payloads for the completed event types in repositories.

Note: The API only looks for pushes in the repository where the check suite was created. Pushes to a branch in a forked repository are not detected and return an empty pull_requests array and a null value for head_branch.

fieldtyperequireddescription
github.event.actionrequestedrequired
github.event.check_suite.conclusionsuccess, failure, neutral, cancelled, timed_out, action_required, stale, None, skippedrequired

The summary conclusion for all check runs that are part of the check suite. This value will be null until the check run has completed.

github.event.check_suite.statusrequested, in_progress, completed, queued, Nonerequired

The summary status for all check runs that are part of the check suite. Can be requested, in_progress, or completed.

rerequested #

This event occurs when there is activity relating to a check suite. For information about check suites, see "Getting started with the Checks API." For information about the APIs to manage check suites, see the GraphQL API documentation or "Check Suites" in the REST API documentation.

For activity relating to check runs, use the check_run event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Checks" permission. To receive the requested and rerequested event types, the app must have at least write-level access for the "Checks" permission. GitHub Apps with write-level access for the "Checks" permission are automatically subscribed to this webhook event.

Repository and organization webhooks only receive payloads for the completed event types in repositories.

Note: The API only looks for pushes in the repository where the check suite was created. Pushes to a branch in a forked repository are not detected and return an empty pull_requests array and a null value for head_branch.

fieldtyperequireddescription
github.event.actionrerequestedrequired
github.event.check_suite.conclusionsuccess, failure, neutral, cancelled, timed_out, action_required, stale, Nonerequired

The summary conclusion for all check runs that are part of the check suite. This value will be null until the check run has completed.

github.event.check_suite.statusrequested, in_progress, completed, queued, Nonerequired

The summary status for all check runs that are part of the check suite. Can be requested, in_progress, or completed.