Skip to content

Add --path flag to gh repo view #6946

@wojtekmaj

Description

@wojtekmaj

Describe the feature or problem you’d like to solve

I have a script that after I'm done releasing a package, opens repo in the browser so I can check if everything has been done correctly. I use gh repo view --web to achieve that. However, I would like to be able to open specific path in said repo.

My proposal is the following:

gh repo view --web --path="/releases"

would open e.g.

https://github.com/cli/cli/releases

Proposed solution

Users will be able to view specific paths in repos using CLI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIhelp wantedContributions welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions