Search + K

Command Palette

Search for a command to run...

Sign In

Check if immutable releases are enabled for a repository

GET /repos/{owner}/{repo}/immutable-releases
Copy endpoint
https://api.github.com

Shows whether immutable releases are enabled or disabled. Also identifies whether immutability is being enforced by the repository owner. The authenticated user must have admin read access to the repository.

Parameters

path Path Parameters

Name Type
owner required

The account owner of the repository. The name is not case sensitive.

string
repo required

The name of the repository without the .git extension. The name is not case sensitive.

string

Responses

200 application/json

Response if immutable releases are enabled

interface CheckImmutableReleases {
enabled: boolean;
enforced_by_owner: boolean;
}

Client Errors

404

Not Found if immutable releases are not enabled for the repository

unknown