-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve the Octo pr list
command
#635
base: master
Are you sure you want to change the base?
Conversation
9a3ebc1
to
f23c3f6
Compare
@legobeat thanks so much for this! |
f23c3f6
to
ef7630e
Compare
9434e8d
to
53c2d20
Compare
This doesn't work for me still. I commented out the "--paginate" as it isn't a flag in the command used. I also prefer the previous entry_maker a bit more. Plus with the colors & symbols here: #637 |
Also noting that this doesn't impact the |
I think much of the original requirements can be done with the current If the goal is to have it in the fuzzy finder and move away from GitHub search then that is another item. What do people think? |
one slight problem with
IMHO it's nice to have branch/author in fuzzy finder |
I guess I find the picker a bit cumbersome in the current form. How about adding the formatting of the user and the branch as done in the PR / issue details in order to provide some separation of the row information.
Adding those bindings could be a good addition and easier solution for this problem. That would be done here: in the same manner as: But ideally, the user would be able to configure these a bit more. |
do you mind having a look at #647? |
4b52718
to
231ef23
Compare
Apologies for dropping a half-baked version without timely follow-up!
Thanks. I have rebased on
Nice!
There are some tradeoffs with each approach (see description on #546 for some motivations). One one hand I'm not sure too what extent it makes sense to have separate It looks like there are some snags/bugs (different ones!) in both implementations at this point. Even if existing bugs are fixed I still have situations where this
I think that sounds like a great idea regardless of all the above! That would solve the motivation of having author name viewable and filterable. Though I guess that would mean that field/column-based sorting would become quite cumbersome? |
d23e3f7
to
e6f9a86
Compare
Thanks for taking care of this PR @legobeat. It is still on draft state, are you planning on doing any more work on this PR? |
Prior to this change, we were using the GraphQL resources to retrieve pull requests. This is limited, since there are a number of very useful queries that are not available in GraphQL, including filtering PRs by author or assignee. This change replaces the GraphQL implementation with one based on `gh pr list`, which uses the REST API, and is more functional. This allows filtering by author, assignee, branches (both head and base), state and labels, as well as arbitrary search strings. To handle large repos gracefully, we abandon the attempt to retrieve all pull requests by paginating, since this is potentially unbounded. Instead we fetch at most a configurable limit of pull requests, and expect the user to use filtering on the list to improve relevance.
fix: validate & document pull_requests.limit (default 100) Update README.md Co-authored-by: Jonas-Taha El Sesiy <github@elsesiy.com>
Co-authored-by: Alvaro Muñoz <pwntester@github.com>
9984d7c
to
02d0129
Compare
Cheers! Mostly I put in draft because
|
Thanks for the update @legobeat We have created a discussion room in Matrix in case you want to join us https://matrix.to/#/#octo.nvim:matrix.org Also, happy to make you a collaborator if you are up for it |
Octo pr list
command #546 with original work done by @alexkalderimis--paginate
to API callpull_requests.limit
author
,author.id
author.username
pull_requests.limit
from 50 to 100