Check if immutable releases are enabled for a repository
GET
/repos/{owner}/{repo}/immutable-releases
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
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” owner
required
string
The account owner of the repository. The name is not case sensitive.
repo
required
string
The name of the repository without the .git extension. The name is not case sensitive.
Responses
Section titled “ Responses ”Response if immutable releases are enabled
Media type application/json
Check immutable releases
Check immutable releases
object
enabled
required
Whether immutable releases are enabled for the repository.
boolean
enforced_by_owner
required
Whether immutable releases are enforced by the repository owner.
boolean
Examples
Example default
{ "enabled": true, "enforced_by_owner": false}Not Found if immutable releases are not enabled for the repository