Update repository
Update a GitHub repository's settings. Requires repository management permission.
Base URL
PATCH
Update a GitHub repository's settings. Requires repository management permission.
bearerAuth repositories:writeheader
AuthorizationBearer <token>API key authentication. Use your API key as the bearer token.
Scope: repositories:write
repository_id*stringRepository identifier
application/json- body
Omitted fields are unchanged.
name?stringDisplay name. Must not be empty.
Length
length <= 200description?stringLength
length <= 2000base_branch?stringDefault branch. Must not be empty.
Length
length <= 200ci_auto_fix_ignored_checks?array<>Items
items <= 100merge_queue?Merge queue override. Returns 400 when the provider is not available.
automatic_reviews?Repositories.RepositoryAutomaticReviewsValue in
"on""inspect""off"Updated repository
application/json- response
data*A repository configured in Inspect.
curl -X PATCH 'https://app.inspect.com/api/v2/repositories/web' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "data": { "id": "web", "name": "web", "description": "Acme customer dashboard and marketing site", "organization": "acme", "remote": "github", "github_host": "github", "base_branch": "main", "auto_match_enabled": true, "ci_auto_fix_ignored_checks": [ "codecov/patch" ], "merge_queue": { "provider": "github" }, "automatic_reviews": "on" }}