docs(examples): Move to PR example to README instead of script

This commit is contained in:
Maas Lalani 2022-08-01 16:09:45 -04:00
parent 01c7d96945
commit 03e0c80b0c
No known key found for this signature in database
GPG key ID: 5A6ED5CBF1A0A000
2 changed files with 8 additions and 5 deletions

View file

@ -369,6 +369,14 @@ List all branches and choose which branches to delete.
git branch | cut -c 3- | gum choose --no-limit | xargs git branch -D
```
#### Choose pull request to checkout
List all PRs for the current GitHub repository and checkout the chosen PR (using [`gh`](https://cli.github.com/)).
```bash
gh pr list | gum choose | cut -f1 | xargs gh pr checkout
```
## Feedback
Wed love to hear your thoughts on this project. Feel free to drop us a note!

View file

@ -1,5 +0,0 @@
#!/bin/sh
# List all pull requests and checkout the branch
gh pr list | gum choose | cut -f1 | xargs gh pr checkout