Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ add completion to gh pr checkout <tab> #714

Merged
merged 2 commits into from
Dec 23, 2023

Conversation

AucaCoyan
Copy link
Contributor

Hi! I added completion to gh pr checkout <tab>
It grabs the first 30 open prs

image

I tried some things

gh pr checkout can accept

  • a pr number
  • a url
  • or a branch

before I tried

  • Incrementing the limit of PRs from 30 (default) to 50, but I takes considerably longer to query, and gotta go fast
  • using the extra field in autocomplete Suggestion. But I couldn't make it
  • tried to use the title in the value, like this below, but when you select a row, it pastes the title into the cli, so gh pr checkout <title> doesn't make sense
    image

So, selecting the pr number is the closest I can get to

@fdncred fdncred merged commit 703b551 into nushell:main Dec 23, 2023
@fdncred
Copy link
Collaborator

fdncred commented Dec 23, 2023

Thanks for adding this. Can't wait to use it.

@AucaCoyan AucaCoyan deleted the add-completion-to-gh-checkout-pr branch December 23, 2023 11:14
@AucaCoyan
Copy link
Contributor Author

You are welcome! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants