sourcegraph / sourcegraph-public-snapshot

Code AI platform with Code Search & Cody
https://sourcegraph.com
Other
10.1k stars 1.28k forks source link

Support custom `archived:` search filter definitions #11376

Open dadlerj opened 4 years ago

dadlerj commented 4 years ago

Requested by https://app.hubspot.com/contacts/2762526/company/1686989427

Hello, I have a question regarding the archived query filter. Is the archived property fetched depending of the codehost (Gitlab, Github, Gerrit...) and not directly from Git ? Because we have archived (READONLY) Gerrit repositories that are included in query results. Is there a work around for this or do we have to wait for Gerrit to be officially supported ?

We've had similar questions in the past from other customers that use different internal conventions for marking repos as "removed" or "archived" (including https://app.hubspot.com/contacts/2762526/company/578600789).

camdencheek commented 8 months ago

Archived does, in fact, come from the code host. It might be reasonable to interpret READONLY Gerrit repositories as archived, but I'll leave that to the source team to decide