Skip to main content

repos

Overview

Namerepos
TypeResource
Idgithub.interactions.repos

Fields

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

Methods

NameAccessible byRequired ParamsDescription
get_restrictions_for_repoSELECTowner, repoShows which type of GitHub user can interact with this repository and when the restriction expires. If there are no restrictions, you will see an empty response.
remove_restrictions_for_repoDELETEowner, repoRemoves all interaction restrictions from the given repository. You must have owner or admin access to remove restrictions. If the interaction limit is set for the user or organization that owns this repository, you will receive a 409 Conflict response and will not be able to use this endpoint to change the interaction limit for a single repository.
set_restrictions_for_repoEXECowner, repo, data__limitTemporarily restricts interactions to a certain type of GitHub user within the given repository. You must have owner or admin access to set these restrictions. If an interaction limit is set for the user or organization that owns this repository, you will receive a 409 Conflict response and will not be able to use this endpoint to change the interaction limit for a single repository.