---
title: "List repository rule suites"
method: GET
path: "/repos/{owner}/{repo}/rulesets/rule-suites"
tags: ["repos"]
---

# List repository rule suites

`GET /repos/{owner}/{repo}/rulesets/rule-suites`

Lists suites of rule evaluations at the repository level.
For more information, see "[Managing rulesets for a repository](https://docs.github.com/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/managing-rulesets-for-a-repository#viewing-insights-for-rulesets)."

## Path parameters

- `owner` string, required
- `repo` string, required

## Query parameters

- `ref` string
- `time_period` 'hour' | 'day' | 'week' | 'month'
- `actor_name` string
- `rule_suite_result` 'pass' | 'fail' | 'bypass' | 'all'
- `evaluate_status` 'all' | 'active' | 'evaluate'
- `per_page` integer
- `page` integer

## Response `200`

Response

- object[] — Response
  - `id` integer — The unique identifier of the rule insight.
  - `actor_id` integer — The number that identifies the user.
  - `actor_name` string — The handle for the GitHub user account.
  - `before_sha` string — The first commit sha before the push evaluation.
  - `after_sha` string — The last commit sha in the push evaluation.
  - `ref` string — The ref name that the evaluation ran on.
  - `repository_id` integer — The ID of the repository associated with the rule evaluation.
  - `repository_name` string — The name of the repository without the `.git` extension.
  - `pushed_at` string, date-time
  - `result` 'pass' | 'fail' | 'bypass' — The result of the rule evaluations for rules with the `active` enforcement status.
  - `evaluation_result` 'pass' | 'fail' | 'bypass' — The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`.

## Other responses

- `404` — Resource not found
- `500` — Internal Error

---

[API](https://skmtc.net/github/apis/github-v3-rest-api.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api/versions/a367f7028301/schema)
