-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Gennaro Tedesco edited this page Feb 1, 2022
·
9 revisions
Welcome to the gh-i
wiki, and a fine day it is!

gh extension install gennaro-tedesco/gh-i
of course gh cli is a prerequisite.
# all the issues you created anywhere
gh i
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ state:any + author:yourself + where:anywhere โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
# all the open issues across your repositories
$ gh i -s open -u @me --me=false
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ state:open + author:any + where:your repos โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
# set the alias
gh alias set todo 'i -u @me --me=false -s open'
gh todo
# all the open bug fixes you are waiting for
gh i -s open -l bug,fix
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ state:open + author:yourself + where:anywhere + labels:bug,fix โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
To execute commands you must always pass the -o
flag, to tell gh-i
that you are piping to stdout
# view the issue in the terminal instead
gh i -u @me -o | xargs -n1 gh issue view
# fetch specifics of the ticket
gh i -u @me -o | xargs -n1 -I {} echo {} | cut -d"/" -f4,5,7
# add comment to ticket
gh i -u @me -o | xargs -n1 gh issue comment -b "adding comment"
# close issue
gh i -u @me -o | xargs -n1 gh issue close