Skip to main content

org_restrictions

Overview

Nameorg_restrictions
TypeResource
Idgithub.interactions.org_restrictions

Fields

NameDatatypeDescription
originstring
expires_atstring
limitstringThe type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect. Can be one of: existing_users, contributors_only, collaborators_only.

Methods

NameAccessible byRequired ParamsDescription
get_restrictions_for_orgSELECTorgShows which type of GitHub user can interact with this organization and when the restriction expires. If there is no restrictions, you will see an empty response.
remove_restrictions_for_orgDELETEorgRemoves all interaction restrictions from public repositories in the given organization. You must be an organization owner to remove restrictions.
set_restrictions_for_orgEXECorg, data__limitTemporarily restricts interactions to a certain type of GitHub user in any public repository in the given organization. You must be an organization owner to set these restrictions. Setting the interaction limit at the organization level will overwrite any interaction limits that are set for individual repositories owned by the organization.