diff --git a/README.md b/README.md index 9bccfd3..9a1ec73 100644 --- a/README.md +++ b/README.md @@ -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 We’d love to hear your thoughts on this project. Feel free to drop us a note! diff --git a/examples/pull-request.sh b/examples/pull-request.sh deleted file mode 100755 index 487611a..0000000 --- a/examples/pull-request.sh +++ /dev/null @@ -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