v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,21696712.2 MB
repos

Check if immutable releases are enabled for a repository

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.

get/repos/{owner}/{repo}/immutable-releases

Path parameters

ownerstring required

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

repostring required

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

Response

Response if immutable releases are enabled

enabledboolean required

Whether immutable releases are enabled for the repository.

enforced_by_ownerboolean required

Whether immutable releases are enforced by the repository owner.

Example response

{
  "enabled": true
}