This document will walk you through the steps of adding internal organization GitHub repositories to Sourcegraph without manually having to maintain an explicit list.
This document assumes that you have:
- Site-admin level permissions on your Sourcegraph instance.
- Access to your Sourcegraph deployment.
- Internal Github repositories in your organization.
- Using the repositoryQuery configuration option, pass the
org
flag to specify the name of the organization the internal repositories belong to and; - Add
is : internal
to the same line.
For example:
"repositoryQuery": [
"org:$name is:internal"
],
Confirm that you have cloned repositories in your instance by accessing your GraphQL console on $your_sourcegraph_url/api/console
and running the following query;
query{
externalServices{
nodes{
kind
displayName
repoCount
}
}
}