Skip to content

let user select pr to checkout (or more) when listing them with pr list #2329

@EugenMayer

Description

@EugenMayer

Describe the feature or problem you’d like to solve

It is a little cumbersome to always first check the pr one is looking for using pr list, then find out the pr number and then write it all out again using pr checkout <number>.

It would be so great if one could be able to interactively select a pr, when they are listed using pr list.

This would make switching PR's a lot easier ( not only solving the task using 1 cli command, instead of for - far more important is that you do not need to remember the number you just saw )

Proposed solution

I understand, that interactive selections like this might be hindering some automation uses - or might be. So i would make this either a opt-in feature, a argument like --selection or similar.

If in any form interested, one can argue that selecting a pr could end up having several reasons like

  • viewing it
  • checking it out
  • merging it
  • closing it

If that is the common idea, we might have a 2 level select, means first select a pr, then the action.

I'am not sure about the current primary mission of gh-cli, be it automation or human-usage (like i happily do daily). If automation is the primary mission, non interactive should be the default, otherwise the other way around might be better.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIgh-prrelating to the gh pr commandhelp wantedContributions welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions