dotfiles/script/ghco

11 lines
204 B
Plaintext
Raw Normal View History

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