ghi icon indicating copy to clipboard operation
ghi copied to clipboard

Searching assignee cross-repo

Open dracos opened this issue 11 years ago • 6 comments

It would be good if ghi list -u <username> listed all that user's open issues, cross repository (without a repo, it returns the same as ghi list, regardless of which username I put, as per the documentation). I don't believe this functionality is available in the issues part of the github API, but it is available in the search part of the github API - by performing a search for assignee:<username>. I don't know if that would be easy to hook up to?

dracos avatar Mar 21 '14 19:03 dracos

It seems list --all -U does not work as expected, true; but list --all --mine works for me. Can be a workaround until we fix the -U option.

// btw just found GHI, it's a complete lifesaver. Yay!

ktoso avatar Apr 21 '14 17:04 ktoso

Once #149 is merged, then this functionality would be implemented, by something like ghi find assignee:<username> --all.

dracos avatar Apr 21 '14 18:04 dracos

Hi @ktoso, @dracos

This is a great idea! I'm assuming we're talking about something similar to ghi list --all --mine for a given username, such as ghi list --all -u some-username?

AlexChesters avatar Oct 16 '15 23:10 AlexChesters

Hi @AlexChesters yes that's exactly it :)

ktoso avatar Oct 17 '15 09:10 ktoso

This seems like a good idea to me @ktoso.

I imagine we'd just need to make a request to https://api.github.com/search/issues?q=assignee:some-username

AlexChesters avatar Oct 17 '15 10:10 AlexChesters

This would be good for anyone to take a look at, however both the -u and -U flags are currently taken. If anyone has an idea of what the flag should be please suggest it!

AlexChesters avatar Oct 17 '15 10:10 AlexChesters