v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,4581,08113.3 MB
repos

Get a repository rule suite

Gets information about a suite of rule evaluations from within a repository. For more information, see "Managing rulesets for a repository."

get/repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}

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.

rule_suite_idinteger required

The unique identifier of the rule suite result. To get this ID, you can use GET /repos/{owner}/{repo}/rulesets/rule-suites for repositories and GET /orgs/{org}/rulesets/rule-suites for organizations.

Response

Response

idinteger

The unique identifier of the rule insight.

actor_idinteger nullable

The number that identifies the user.

actor_namestring nullable

The handle for the GitHub user account.

before_shastring

The previous commit SHA of the ref.

after_shastring

The new commit SHA of the ref.

refstring

The ref name that the evaluation ran on.

repository_idinteger

The ID of the repository associated with the rule evaluation.

repository_namestring

The name of the repository without the .git extension.

pushed_atstring date-time
result'pass' | 'fail' | 'bypass'

The result of the rule evaluations for rules with the active enforcement status.

evaluation_result'pass' | 'fail' | 'bypass' nullable

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. Null if no rules with evaluate enforcement status were run.

Example response

{
  "pushed_at": "2011-01-26T19:06:43Z"
}