Options (5)
booleanList all rulesets for the current repository
Example:
gh {{[rs|ruleset]}} {{[ls|list]}}booleanList all rulesets for the current repository
Example:
gh {{[rs|ruleset]}} {{[ls|list]}}-o, --orgbooleanList all rulesets for a specific organization
Example:
gh {{[rs|ruleset]}} {{[ls|list]}} {{[-o|--org]}} {{organization_name}}-R, --repobooleanCheck the rules that apply to a specific branch in another repository
Example:
gh {{[rs|ruleset]}} check {{branch_name}} {{[-R|--repo]}} {{owner}}/{{repository}}-w, --webbooleanOpen the list of rulesets for a specific repository in the browser
Example:
gh {{[rs|ruleset]}} {{[ls|list]}} {{[-R|--repo]}} {{owner}}/{{repository}} {{[-w|--web]}}Examples (8)
List all rulesets for the current repository
gh [rs|ruleset] [ls|list]List all rulesets for a specific organization
gh [rs|ruleset] [ls|list] [-o|--org] organization_nameCheck the rules that apply to the current branch
gh [rs|ruleset] checkCheck the rules that apply to a specific branch in another repository
gh [rs|ruleset] check branch_name [-R|--repo] owner/repositoryView an organization-level ruleset by its ID
Open the list of rulesets for a specific repository in the browser
gh [rs|ruleset] [ls|list] [-R|--repo] owner/repository [-w|--web]made by @shridhargupta | data from tldr-pages