org_restrictions
Overview
Name | org_restrictions |
Type | Resource |
Id | github.interactions.org_restrictions |
Fields
Name | Datatype | Description |
---|---|---|
origin | string | |
expires_at | string | |
limit | string | The 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
Name | Accessible by | Required Params | Description |
---|---|---|---|
get_restrictions_for_org | SELECT | org | Shows 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_org | DELETE | org | Removes all interaction restrictions from public repositories in the given organization. You must be an organization owner to remove restrictions. |
set_restrictions_for_org | EXEC | org, data__limit | Temporarily 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. |