2021-03-31 12:47:59 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Select and checkout a GitHub pull request using the GitHub CLI (required)
|
|
|
|
set -e
|
|
|
|
|
2021-04-23 03:57:17 +02:00
|
|
|
export GH_NO_UPDATE_NOTIFIER=1
|
|
|
|
|
2021-08-04 10:21:25 +02:00
|
|
|
prid=$(gh pr list --limit 100 | fzf | awk '{print $1}')
|
2021-03-31 12:47:59 +02:00
|
|
|
if [ -z $prid ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
gh pr checkout $prid
|