To search projects on GitLab, you’ll create a GitLab Connection. Using this connection, you can:

  • Index individual GitLab projects
  • Index all of the projects in a GitLab group/sub-group
  • Index all of the projects from a GitLab user
If you want to index a private project/group, make sure you provide an access token

Config Schema

For a detailed description of the schema, check out the schema file (TODO: link)

This flag only works if your GitLab instance url is set and not equal to https://gitlab.com. Make sure you provide a secret containing the necessary access token to fetch your projects.
If you’d like to index all projects visible to your GitLab instance, you can use the all flag.

    {
        "type": "gitlab",
        "all": "true",
        "url": "https://gitlab.aperaturelabs.com" // This is required, and cannot be https://gitlab.com
        "token": {
            "secret": "MY_SECRET_KEY_NAME" // the name of the secret you created in Sourcebot
        }
    }

Filter Options

This connection type supports additional options for filtering which projects are indexed.

You can provide a list of repository topics to include while fetching the projects. Only projects that match at least one of these topics will be fetched.

{
    "type": "gitlab",
    "topics": [
        "docs",
        "core"
    ]
    // .. additional configs .. 
}