Sample - GitHub REST API
GET/repos/{owner}/{repo}/immutable-releases

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.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The name of the repository without the `.git` extension. The name is not case sensitive.

2 status codes
200Response if immutable releases are enabled
enabledbooleanrequired
Whether immutable releases are enabled for the repository.
enforced_by_ownerbooleanrequired
Whether immutable releases are enforced by the repository owner.
404Not Found if immutable releases are not enabled for the repository

Error handling

A 404 is returned: Not Found if immutable releases are not enabled for the repository.