Check if immutable releases are enabled for a repository
GET
/repos/{owner}/{repo}/immutable-releases 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 | string |
Responses
200 application/json
Response if immutable releases are enabled
interface CheckImmutableReleases {
enabled: boolean;
enforced_by_owner: boolean;
}
enabled: boolean;
enforced_by_owner: boolean;
}
Client Errors
404
Not Found if immutable releases are not enabled for the repository
unknown