repos
Get all repository rulesets
Get all the rulesets for a repository.
get/repos/{owner}/{repo}/rulesets
Path parameters
ownerstring required
The account owner of the repository. The name is not case sensitive.
repostring required
The name of the repository without the .git extension. The name is not case sensitive.
Query parameters
per_pageinteger
The number of results per page (max 100). For more information, see "Using pagination in the REST API."
pageinteger
The page number of the results to fetch. For more information, see "Using pagination in the REST API."
includes_parentsboolean
Include rulesets configured at higher levels that apply to this repository
targetsstring
Example:branch,tag,push
A comma-separated list of rule targets to filter by. If provided, only rulesets that apply to the specified targets will be returned. For example, branch,tag,push.
Response
Response