Get immutable releases settings for an organization
GET
/orgs/{org}/settings/immutable-releases
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.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
The organization name. The name is not case sensitive.
Responses
Section titled “Responses”Immutable releases settings response
Media typeapplication/json
Check immutable releases organization settings
Check immutable releases settings for an organization.
object
enforced_repositories
required
The policy that controls how immutable releases are enforced in the organization.
string
selected_repositories_url
The API URL to use to get or set the selected repositories for immutable releases enforcement, when enforced_repositories is set to selected.
string
Examples
Exampledefault
{ "enforced_repositories": "all"}