How sourcegraph/artifacts works
This repository is a collection of public Sourcegraph artifacts, not the exporter implementation. Its visible product is GraphQL schema artifacts; the README says schemas are published to a public GCS bucket on every release and database migrations on major and minor releases. The tree contains no migration files, so migrations are documented as an artifact capability but have no repository source node. Schema files define independent API domains; no runtime calls between them are evidenced.
Main entry points: schema.graphql Base schema
Components 25
Core API
- Base schema
gql/schema.graphql - Prompts
gql/prompts.graphql
Search and insights
- Search contexts
gql/search_contexts.graphql - Search jobs
gql/search_jobs.graphql - Saved searches
gql/saved_searches.graphql - Code insights
gql/insights.graphql - Insight aggregations
gql/insights_aggregations.graphql - Notebooks
gql/notebooks.graphql - Cody context
gql/cody_context.graphql
Code workflows
- Batch changes
gql/batches.graphql - Batch agents
gql/batch_change_agents.graphql - Agentic batch changes
gql/agentic_batch_changes.graphql - Code monitors
gql/code_monitors.graphql - Auto indexing
gql/codeintel.autoindexing.graphql - Code navigation
gql/codeintel.codenav.graphql - Code intelligence policies
gql/codeintel.policies.graphql - Diff review
gql/diff_review.graphql
Platform and identity
- Authorization
gql/authz.graphql - Entitlements
gql/entitlements.graphql - Identity providers
gql/idp.graphql - Multitenancy
gql/multitenant.graphql - Outbound webhooks
gql/outbound_webhooks.graphql
Other components
- Release finalization
- Public GCS bucket
- Database migrations
Connections 3
- Release finalization → Public GCS bucket: publishes artifacts
- Release finalization → Database migrations: exports migrations
- Release finalization → Base schema: exports schemas