GH-RULESET(1) GitHub CLI manual GH-RULESET(1)

gh-ruleset - View info about repo rulesets

gh ruleset <command> [flags]

Repository rulesets are a way to define a set of rules that apply to a repository. These commands allow you to view information about them.

View rules that would apply to a given branch

List rulesets for a repository or organization

View information about a ruleset

Select another repository using the [HOST/]OWNER/REPO format

$ gh ruleset list
$ gh ruleset view --repo OWNER/REPO --web
$ gh ruleset check branch-name

gh(1)

Nov 2024