Feature request: search code for "not archived" repositories


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:

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



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.



Hi @belhfl!

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


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:


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

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


Just ran into this as well. Would love to see archived:false working for code search


+1 This would be a huge help. How do we find out where this is on the GH priority list?


Bump: it’s 2020, how do we get action on this request? It’s crazy that there isn’t a way to filter out archived repos from a search (and it’s crazy-difficult to do anything with those repos; once archived, all settings including group-access restrictions are locked).

1 Like

+1, this feature is a “must have”.


the power of search becomes useless, or even misleading and counterproductive if you end up seeing archived results side by side with active, live code when searching en-masse

I agree! This would be amazing, and is sorely needed for my organization.

Another +1 from me. This is becoming a real issue.

+1 from me, this would be very useful

1 Like


I have also ran into really desiring this feature.

+1 This is a need for the search to be really usefull

+1 - one of the primary advantages to archiving a repository is to filter it out of various searches; it’s a real surprise to see that missing from “advanced” search :disappointed:

+1 Our org has zillion archived repositories and it’s a pain when you need to manually open each result on a separate tab, that would be fabulous if there is at least an “archive” badge or label on the code search results listing

1 Like

+1 Yes, please make my job easier

1 Like

+1 - would love to have this feature

1 Like