Please, please support excluding archived repos! #8591
-
Hi! I'm so excited that GitHub is rebuilding and significantly improving code search! It's desperately needed. Please, please don't rebuild a brand new code search that also does not support filtering out results from archived repos. This missing functionality alone has easily made GitHub code search 50+% less usable than it would otherwise be for me at our org, which contains 900+ repos out of which 600+ are archived. I have to wade through so much noise while holding the context in my head about which repos are archived and therefore irrelevant. I have to let others know when they've been misled into thinking some function is used 25 times when it's actually used 3 times. There are have been hundreds of people advocating for this for years over here: https://github.saobby.my.eu.orgmunity/t/feature-request-search-code-for-not-archived-repositories/2135/56. If I had children, I would give up my first-born son for this. 🙏🏼 |
Beta Was this translation helpful? Give feedback.
Replies: 16 comments 59 replies
-
I don't have children but I would give someone else's child for it 👍🏼 |
Beta Was this translation helpful? Give feedback.
-
I agree this functionality would be killer. I use Sourcegraph for this exact feature. |
Beta Was this translation helpful? Give feedback.
-
We have thousands of repos across our organization, being able to code search search active, non-archived repos (the recently announced log4j vulnerability is the trigger for me landing here) is a must have. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the feedback! This is on our roadmap. (The team requests please no children, though.) |
Beta Was this translation helpful? Give feedback.
-
That latest log4j vulnerability just brought me here. The archived repos in the search results are "annoying". |
Beta Was this translation helpful? Give feedback.
-
This is now implemented! By default, results from archived repositories are searched, but down-ranked. If a result appears only in an archived repository, you'll see it. You can change this using More details are available on the syntax page. |
Beta Was this translation helpful? Give feedback.
-
I found
returns archived repos |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
This is only partially working for me. When searching my organization's repos, adding 'NOT is:archived' to the search does cut down the number of results, but it unfortunately still includes some archived repos. |
Beta Was this translation helpful? Give feedback.
-
I've found in our organization that this doesn't work at all. In fact, when you codesearch for something that only exists in an archived repo, and set |
Beta Was this translation helpful? Give feedback.
-
[Workaround] Here's my workaround for all you frustrated cats (i was too till i just figured this out) Create a new organization called and instead of "archiving" a repo (i guess you still can do that too) you just "transfer" the repo. boom! solved & saved :) 🍻 cheers! now lets connect on social bc i need more developers and smart people feeds to read instead of political nonsense and camgirl spam twitter @dvnschmhr |
Beta Was this translation helpful? Give feedback.
-
When is this feature going to be rolled out to GitHub Enterprise? It looks like it's been in public GitHub for well over a year. I tried this on our 3.11.2 instance, and it does not work. For example:
returns N matches.
returns the same N matches, even though I know there are archived repos.
returns no matches. |
Beta Was this translation helpful? Give feedback.
-
If anyone can provide an update if this has been rolled out for GitHub (or for Github enterprise in particular)? Much like the original thread creator, I would go to have a child and give it to this cause (if it serves as an inspiration 🥺 ) |
Beta Was this translation helpful? Give feedback.
-
Is there a way to support |
Beta Was this translation helpful? Give feedback.
This is now implemented!
By default, results from archived repositories are searched, but down-ranked. If a result appears only in an archived repository, you'll see it.
You can change this using
is:archived
andNOT is:archived
. For example, if you want to find Log4J in non-archived repositories only, use:log4j NOT is:archived
More details are available on the syntax page.