Search Code API: Exclude repositories from org?

Dear community,

I’m running a query against the API v3, such as the following:

Works fine of course, but I’d like to exclude repositories from a specific organization. Is that possible?

No, there isn’t a way to do that in the search API. You’ll have to look through the results and specifically exclude the ones from the organization you don’t want.

1 Like