github_repos_get_org_rulesets
Fetch all repository rulesets for an organization. Filter by target types and paginate results to enforce compliance policies.
Instructions
Get all organization repository rulesets
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | Yes | org | |
| per_page | No | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." | |
| page | No | The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." | |
| targets | No | 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`. |