Feature request: search code for "not archived" repositories

Description

In the advanced search page, when searching for code there is no way to exclude archived projects.

For example when looking within an organization’s repositories for projects that use a specific Gem (package) version, in e.g. _Gemfile _or Gemfile.lock the search results include all the instance of that gem in archived projects as well making it cumbersome to identify the important ones.

Another alternative would be to display which projects are archived in the search results.

Here is an example from Github’s organization:

This repository is archived:
https://github.com/github/github-graphql-rails-example

It would be fantastic if we could filter out those results.

Related

13 Likes

Hi @fotos

Thanks for this feedback! We’re always working to improve GitHub and the GitHub Community Forum, and we consider every suggestion we receive. I’ve logged your feature request in our internal feature request list. Though I can’t guarantee anything or share a timeline for this, I can tell you that it’s been shared with the appropriate teams for consideration.

Cheers!

5 Likes

Hi @belhfl!

Certainly, that’s completely understable. Thanks for considering the suggestion!

Best,

Note, I just figured out while this doesn’t have a visual option on the advanced search page… I didn’t see this documented as part of search, but as part of the repo filters… It works for full search though, which is great.

org:myorg archived:false some-term give this a shot

That looks promising!

I tried this with the example I gave above. Unfortunately I can’t make it work. The archived github/github-graphql-rails-example still shows up.

Another, simpler [example](http://nokogiri%20org:github archived:true):

nokogiri org:github archived:true

The above query returns results from non-archived projects as well.

There is a similar suggestion here as well. I’d love to see a working example. :sweat_smile:

1 Like

Came here looking for this feature as well. *subscribe* 

archived:true works for repository searches, but not for code search.