Skip to content

Instantly share code, notes, and snippets.

@tagty
Last active September 24, 2020 00:01
Show Gist options
  • Save tagty/cc3e32384c9f76e44710dd3cd0309a4e to your computer and use it in GitHub Desktop.
Save tagty/cc3e32384c9f76e44710dd3cd0309a4e to your computer and use it in GitHub Desktop.
GithubのPullリクエストのタイトルをCLIで検索するにはどうすればよいか?

GithubのPullリクエストのタイトルをCLIで検索するにはどうすればよいか?

  • GithubのPull Requestを検索したいと思うことがあります。
  • CLIで検索するにはどうすればよいでしょうか?

Github CLIとpecoを利用する

  • 今回は、Github CLIとpecoを使って、fishのエイリアスを貼ろうと思います。
  • 以下のように設定しました。
$ cat ~/.config/fish/config.fish

alias ghpr='gh pr view --web (gh pr list | peco | cut -f 1)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment