logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

gh-ruleset-view - View information about a ruleset

Description

       View information about a GitHub ruleset.

       If no ID is provided, an interactive prompt will be used to choose the ruleset to view.

       Use  the  --parents  flag  to control whether rulesets configured at higher levels that also apply to the
       provided repository or organization should be returned. The default is true.

Example

       # Interactively choose a ruleset to view from all rulesets that apply to the current repository
       $ gh ruleset view

       # Interactively choose a ruleset to view from only rulesets configured in the current repository
       $ gh ruleset view --no-parents

       # View a ruleset configured in the current repository or any of its parents
       $ gh ruleset view 43

       # View a ruleset configured in a different repository or any of its parents
       $ gh ruleset view 23 --repo owner/repo

       # View an organization-level ruleset
       $ gh ruleset view 23 --org my-org

Name

       gh-ruleset-view - View information about a ruleset

Options

-o, --org<string>
              Organization name if the provided ID is an organization-level ruleset

       -p, --parents(defaulttrue)
              Whether to include rulesets configured at higher levels that also apply

       -w, --web
              Open the ruleset in the browser

Options Inherited From Parent Commands

-R, --repo<[HOST/]OWNER/REPO>
              Select another repository using the [HOST/]OWNER/REPO format

See Also

gh-ruleset(1)

                                                    Jan 2025                                  GH-RULESET-VIEW(1)

Synopsis

ghrulesetview[<ruleset-id>][flags]

See Also