provider interactions PUT /user/interaction-limits
@utdk/github /user/interaction-limits
Set interaction restrictions for your public repositories
Temporarily restricts which type of GitHub user can interact with your public repositories. Setting the interaction limit at the user level will overwrite any interaction limits that are set for individual repositories owned by the user.

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.setRestrictionsForAuthenticatedUser
PUT/user/interaction-limits
Temporarily restricts which type of GitHub user can interact with your public repositories. Setting the interaction limit at the user level will overwrite any interaction limits that are set for individual repositories owned by the user.

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.setRestrictionsForAuthenticatedUser()