Skip to content

Make pr edit dynamically look up PR based on current branch #3003

@austince

Description

@austince

Describe the feature or problem you’d like to solve

The newly released gh pr edit command requires passing the PR number. This conflicts with the UX of other pr commands, like gh pr view, which finds related PRs for the current branch.

Proposed solution

Make gh pr edit lookup the PR for the current branch, and only require an explicit argument if none is found. This would unify the experience.

Metadata

Metadata

Assignees

Labels

coreThis issue is not accepting PRs from outside contributorsenhancementa request to improve CLI

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions