Sample - GitHub REST API
PATCH/repos/{owner}/{repo}/check-suites/preferences

Update repository preferences for check suites

Changes the default automatic flow when creating check suites. By default, a check suite is automatically created each time code is pushed to a repository. When you disable the automatic creation of check suites, you can manually Create a check suite. You must have admin permissions in the repository to set preferences for check suites.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters · 1 body field
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The name of the repository without the `.git` extension. The name is not case sensitive.
auto_trigger_checksarray<object>optional
Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default.

1 status code
200Response
preferencesobjectrequired
repositoryobjectrequired
Minimal Repository