From 03e0c80b0ca938c3e15388a0c2581079c321e1c9 Mon Sep 17 00:00:00 2001 From: Maas Lalani Date: Mon, 1 Aug 2022 16:09:45 -0400 Subject: [PATCH] docs(examples): Move to PR example to README instead of script --- README.md | 8 ++++++++ examples/pull-request.sh | 5 ----- 2 files changed, 8 insertions(+), 5 deletions(-) delete mode 100755 examples/pull-request.sh 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