gh-ruleset: add page (#18623)

This commit is contained in:
Meinard Francisco
2025-10-12 21:41:01 +03:00
committed by GitHub
parent 3dd58dccff
commit 035f1aed47
2 changed files with 43 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
# gh rs
> This command is an alias of `gh ruleset`.
- View documentation for the original command:
`tldr gh ruleset`
+36
View File
@@ -0,0 +1,36 @@
# gh ruleset
> Manage GitHub repository rulesets.
> More information: <https://cli.github.com/manual/gh_ruleset>.
- 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_name}}`
- Check the rules that apply to the current branch:
`gh {{[rs|ruleset]}} check`
- Check the rules that apply to a specific branch in another repository:
`gh {{[rs|ruleset]}} check {{branch_name}} {{[-R|--repo]}} {{owner}}/{{repo}}`
- Interactively select and view a ruleset for the current repository:
`gh {{[rs|ruleset]}} view`
- View a specific ruleset by its ID:
`gh {{[rs|ruleset]}} view {{ruleset_id}}`
- View an organization-level ruleset by its ID:
`gh {{[rs|ruleset]}} view {{ruleset_id}} {{[-o|--org]}} {{organization_name}}`
- Open the list of rulesets for a specific repository in the browser:
`gh {{[rs|ruleset]}} {{[ls|list]}} {{[-R|--repo]}} {{owner}}/{{repo}} {{[-w|--web]}}`