Skip to main content

user_restrictions

Overview

Nameuser_restrictions
TypeResource
Idgithub.interactions.user_restrictions

Fields

NameDatatypeDescription
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.
originstring
expires_atstring

Methods

NameAccessible byRequired ParamsDescription
get_restrictions_for_authenticated_userSELECTShows which type of GitHub user can interact with your public repositories and when the restriction expires.
remove_restrictions_for_authenticated_userDELETERemoves any interaction restrictions from your public repositories.
set_restrictions_for_authenticated_userEXECdata__limitTemporarily 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.