Skip to main content

immutable_releases_settings

Creates, updates, deletes, gets or lists an immutable_releases_settings resource.

Overview

Nameimmutable_releases_settings
TypeResource
Idgithub.orgs.immutable_releases_settings

Fields

The following fields are returned by SELECT queries:

Immutable releases settings response

NameDatatypeDescription
enforced_repositoriesstringThe policy that controls how immutable releases are enforced in the organization. (all, none, selected) (example: all)
selected_repositories_urlstringThe API URL to use to get or set the selected repositories for immutable releases enforcement, when enforced_repositories is set to selected.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_immutable_releases_settingsselectorgGets 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.
set_immutable_releases_settingsreplaceorg, enforced_repositoriesSets 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

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
orgstringThe organization name. The name is not case sensitive.

SELECT examples

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.

SELECT
enforced_repositories,
selected_repositories_url
FROM github.orgs.immutable_releases_settings
WHERE org = '{{ org }}' -- required
;

REPLACE examples

Sets 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.

REPLACE github.orgs.immutable_releases_settings
SET
enforced_repositories = '{{ enforced_repositories }}',
selected_repository_ids = '{{ selected_repository_ids }}'
WHERE
org = '{{ org }}' --required
AND enforced_repositories = '{{ enforced_repositories }}' --required;