Sample - GitHub REST API
GET/orgs/{org}/settings/immutable-releases

Get immutable releases settings for an organization

Gets the immutable releases policy for repositories in an organization.

OAuth tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

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

1 parameter
orgstringrequired
The organization name. The name is not case sensitive.

1 status code
200Immutable releases settings response
enforced_repositoriesstringrequired
The policy that controls how immutable releases are enforced in the organization.
Allowed:allnoneselected
selected_repositories_urlstringoptional
The API URL to use to get or set the selected repositories for immutable releases enforcement, when `enforced_repositories` is set to `selected`.