isaacs / github

Just a place to track issues and feature requests that I have for github
2.2k stars 129 forks source link

searching only issues (without PRs) #1511

Open oprogramador opened 5 years ago

oprogramador commented 5 years ago

I want to search only issues (normal issues, not PRs) for a given repo or organization.

Unfortunately is:issue finds both PRs and issues.

So I don't know which query I should type and whether it's possible.

oprogramador commented 5 years ago

It's related to https://github.com/isaacs/github/issues/65 and partially to https://github.com/isaacs/github/issues/660

TPS commented 5 years ago

Also, is:pr-is:pr, which might be the same problem 🤦‍♂️🤷

clarkbw commented 5 years ago

I don’t understand what isn’t working. Can you provide a link?

https://github.com/isaacs/github/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+closing Only returns issues

While https://github.com/isaacs/github/pulls?utf8=%E2%9C%93&q=is%3Apr+is%3Aopen+closing only returns PRs.

And similarly in search it seems to work for me. https://github.com/isaacs/github/search?q=closing+is%3Aissue&type=Issues

oprogramador commented 5 years ago

@clarkbw

This search https://github.com/pulls?utf8=%E2%9C%93&q=user%3Aisaacs returns both PRs and issues.

And https://github.com/pulls?utf8=%E2%9C%93&q=user%3Aisaacs+is%3Aissue returns only PRs.

In GitHub it's possible to view only issues for a given repo but I cannot find it possible for a given user or organization.

clarkbw commented 5 years ago

Something odd is happening. I see what you're saying in those links but I can search for separate issues from prs if you add the is:pr or is:issue to the right top level URL. Of course /pulls won't let you search for issues if you add is:issue it'll revert to is:pr.

issues

via https://github.com/issues

https://github.com/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+archived%3Afalse+user%3Aisaacs

pulls

via https://github.com/pulls

https://github.com/pulls?utf8=%E2%9C%93&q=user%3Aisaacs+is%3Apr

oprogramador commented 5 years ago

@clarkbw

very big thanks for this!

so I can do what I need but IMO: