Get interaction restrictions for a repository
GET
/repos/{owner}/{repo}/interaction-limits
Shows 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.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” owner
required
string
The account owner of the repository. The name is not case sensitive.
repo
required
string
The name of the repository without the .git extension. The name is not case sensitive.
Responses
Section titled “ Responses ”Response
Media type application/json
Any of:
Interaction Limits
Interaction limit settings.
object
limit
required
The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect.
string
origin
required
string
expires_at
required
string format: date-time
object
Examples
Example default
{ "limit": "collaborators_only", "origin": "repository", "expires_at": "2018-08-17T04:18:39Z"}