3 ms·
This is really cool! I have something similar just for checking out PRs in a single bash function, powered by gh and fzf: function ghpr() { gh pr list -
by dcre 2y ago
This is really cool!
I have something similar just for checking out PRs in a single bash function, powered by gh and fzf:
function ghpr() {
gh pr list --limit 100 --json number,title,updatedAt,author --template \
'{{range .}}{{tablerow .number .title .author.name (timeago .updatedAt)}}{{end}}' |
fzf --height 25% --reverse |
cut -f1 -d ' ' |
xargs gh pr checkout
}
Screenshot: https://github.com/oxidecomputer/console/assets/3612203/2805b41a-c474-4da5-9658-ebf5d65f8480 https://github.com/oxidecomputer/console/assets/3612203/2805...
- achristmascarl 2y agospeaking of fzf, i have an alias for checking out branches using it + git: alias gbs="git branch --sort=-committerdate | fzf | xargs -I{} git checkout {}"