Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 1
Message 1 of 3

Issues included by "author:somebody" not the same as the ones excluded by "-author:somebody"

Hi - so when I search merged PRs for an author, and then search for merged PRs NOT by an author, the results don't add up to the total number of merged PRs.

 

Example:

 

https://github.com/opencv/opencv/pulls?utf8=%E2%9C%93&q=is%3Apr+is%3Amerged
is:pr is:merged
Results: 7532

https://github.com/opencv/opencv/pulls?utf8=%E2%9C%93&q=is%3Apr+is%3Amerged+author%3Aalalek
is:pr is:merged author:alalek
Results: 1370

https://github.com/opencv/opencv/pulls?utf8=%E2%9C%93&q=is%3Apr+is%3Amerged+-author%3Aalalek+
is:pr is:merged -author:alalek
Results: 6141

 

1370 + 6141 = 7511 != 7532

 

So in this example there's 21 PRs that are excluded by "-author:alalek", but aren't included when searching for "author:alalek".  Is there any way to figure out what these mystery commits are?  Is there another search term that will give more consistent results?

2 Replies
Highlighted
Community Manager
Message 2 of 3

Re: Issues included by "author:somebody" not the same as the ones excluded by "-autho

I assume that they were authored by someone who has since deleted their GitHub account. We signify this kind of activity by changing the author of any activity from that account to ghost. But since ghost isn't a valid user, you can't search for things authored by ghost. This would explain the disparity.

 

I hope that helps!

Ground Controller Lvl 1
Message 3 of 3

Re: Issues included by "author:somebody" not the same as the ones excluded by "-autho

From what I've seen, it's more that *issues opened by a ghost can't show up in search*. At all.

This is pretty bad for us because the original project developer deleted their account and now we have hundreds of issues, many still live, that can't be found by searching on terms in their title/body.

If someone else opened the issue but the ghost commented, the issue with that comment can still be found via search on the text within the ghost's comment.