Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

searching only issues (without PRs) #1511

Open
oprogramador opened this issue Mar 1, 2019 · 6 comments
Open

searching only issues (without PRs) #1511

oprogramador opened this issue Mar 1, 2019 · 6 comments

Comments

@oprogramador
Copy link

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
Copy link
Author

It's related to #65 and partially to #660

@TPS
Copy link
Collaborator

TPS commented Mar 1, 2019

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

@clarkbw
Copy link
Collaborator

clarkbw commented Mar 1, 2019

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
Copy link
Author

oprogramador commented Mar 2, 2019

@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
Copy link
Collaborator

clarkbw commented Mar 4, 2019

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
Copy link
Author

oprogramador commented Mar 4, 2019

@clarkbw

very big thanks for this!

so I can do what I need but IMO:

  • there should be only one path (maybe /issues, whatever)
  • there can be still 2 buttons Pull requests and issues, redirecting to the same path but with different queries
  • is:issue should show always only issues
  • is:pr should show always only PRs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants