provider interactions PUT /orgs/{org}/interaction-limits
@utdk/github /orgs/{org}/interaction-limits
Set interaction restrictions for an organization
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.
org path required
The organization name. The name is not case sensitive.
string

Try it

Authentication
Configure credentials for GitHub v3 REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

interactions.setRestrictionsForOrg
PUT/orgs/{org}/interaction-limits
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.

Parameters

required

The organization name. The name is not case sensitive.

Input

required

The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect.

The duration of the interaction restriction. Default: `one_day`.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import github from '@utdk/github';

await github.interactions.setRestrictionsForOrg()