Skip to content

gh pr review infers base repo from url #1060

@oscard0m

Description

@oscard0m

Describe the feature or problem you’d like to solve

When running gh pr review <url> and the git folder of the repo is not in context, is necessary to pass the repo with -R, --repo OWNER/REPO

i.e.

gh pr review https://github.com/cli/cli --aprove -R cli/cli

without -R, --repo, is not able to infer the repository from the url

Proposed solution

Would be nice to add a fallback option before trying to rely on --repo option to check if the command received a repo url as parameter and try to infer the OWNER/REPO from there

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions