pwntester / octo.nvim

Edit and review GitHub issues and pull requests from the comfort of your favorite editor
MIT License
2.42k stars 136 forks source link

How to do searches for PRs based on GitHub attributes? #203

Closed kamilc closed 2 years ago

kamilc commented 3 years ago

I'm having a hard time figuring out the :Octo pr list (...) command arguments that would correspond with:

gh pr list --search "is:open is:pr review-requested:@me"

Is what's above possible in octo? Thnks!

pwntester commented 3 years ago

Hi, sorry for the late response.

Currently, its only possible to filter by "baseRefName", "headRefName", "labels" and "states". eg: Octo pr list states=CLOSED This is what the API allows

But is should be possible to do Octo pr search and then enter is:open review-requested:@me since is:pr is already implied

skbolton commented 2 years ago

Came here to ask the same thing. I am not able to get your suggestion to work though. I have tried both :Octo pr search review-requested:@me and doing :Octo pr search and then typing review-requested:@me into the telescope prompt. What am I doing wrong?

skbolton commented 2 years ago

Apologies, I found the example in the FAQ