Get an organization rule suite
Gets information about a suite of rule evaluations from within an organization. For more information, see “Managing rulesets for repositories in your organization.”
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The organization name. The name is not case sensitive.
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.
Responses
Section titled “ Responses ”Response
Response
object
The unique identifier of the rule insight.
The number that identifies the user.
The handle for the GitHub user account.
The previous commit SHA of the ref.
The new commit SHA of the ref.
The ref name that the evaluation ran on.
The ID of the repository associated with the rule evaluation.
The name of the repository without the .git extension.
The result of the rule evaluations for rules with the active enforcement status.
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.
Details on the evaluated rules.
object
object
The type of rule source.
The ID of the rule source.
The name of the rule source.
The enforcement level of this rule source.
The result of the evaluation of the individual rule.
The type of rule.
The detailed failure message for the rule. Null if the rule passed.
Examples
{ "id": 21, "actor_id": 12, "actor_name": "octocat", "before_sha": "893f768e172fb1bc9c5d6f3dd48557e45f14e01d", "after_sha": "dedd88641a362b6b4ea872da4847d6131a164d01", "ref": "refs/heads/i-see-everything", "repository_id": 404, "repository_name": "octo-repo", "pushed_at": "2023-07-06T08:43:03Z", "result": "bypass", "evaluation_result": "fail", "rule_evaluations": [ { "rule_source": { "type": "ruleset", "id": 2, "name": "Author email must be a GitHub email address" }, "enforcement": "active", "result": "pass", "rule_type": "commit_author_email_pattern" }, { "rule_source": { "type": "protected_branch" }, "enforcement": "active", "result": "fail", "rule_type": "pull_request", "details": "Changes must be made through a pull request." }, { "rule_source": { "type": "ruleset", "id": 3, "name": "Evaluate commit message pattern" }, "enforcement": "evaluate", "result": "fail", "rule_type": "commit_message_pattern" } ]}Resource not found
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Internal Error
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}