{"schemaVersion":1,"resourceType":"connector","slug":"gitlab","name":"GitLab","catalog":"gitlab","description":"GitLab projects, merge requests, issues, CI pipelines, jobs and logs as SQL tables","language":"Python","categories":["saas"],"repository":"https://github.com/Query-farm/vgi-gitlab","license":"0BSD","generatedAt":"2026-12-01T18:22:16+00:00","runtime":{"engineVersion":"2.0.1","protocolVersion":"3.4"},"release":{"tag":"v0.2.0","publishedAt":"2026-11-25T14:29:38Z","url":"https://github.com/Query-farm/vgi-gitlab/releases/tag/v0.2.0"},"links":{"html":"https://query.farm/products/orchard/connectors/gitlab/","llms":"https://query.farm/products/orchard/connectors/gitlab/llms.txt","markdown":"https://query.farm/products/orchard/connectors/gitlab/index.md","json":"https://query.farm/products/orchard/api/v1/connectors/gitlab.json","objects":"https://query.farm/products/orchard/api/v1/connectors/gitlab/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=gitlab&q={query}"},"authentication":{"mode":"required","guidance":"Supply your own service credentials or required connection options before querying protected data.","interpretation":"Secret parameter required flags describe the upstream declaration; they do not override the service-level mode above. Keep secrets in environment variables or the deployment secret store. SQL values in angle brackets are placeholders, not automatic environment lookups. Native DuckDB and Haybarn 2.0.1 do not provide a SQL getenv() function, even when worker-supplied snippets mention it. Read environment variables in your application and pass credential values through client parameter bindings (for example, Python con.execute(\"CREATE SECRET stripe (TYPE stripe, api_key ?)\", [os.environ[\"STRIPE_API_KEY\"]]) after attaching the connector. Omit unused optional parameters and keep real values out of saved SQL and logs.","secrets":[{"type":"gitlab","description":"Access to one GitLab instance's REST API v4: an access token and, for self-managed GitLab, the instance's base URL (default https://gitlab.com).","documentation":"https://github.com/Query-farm/vgi-gitlab#credentials","parameters":[{"name":"token","type":"VARCHAR","required":false,"redact":true,"description":"Personal, project or group access token (read_api scope is enough), or an OAuth access token. Optional for public projects on gitlab.com."},{"name":"base_url","type":"VARCHAR","required":false,"redact":false,"description":"Root URL of the GitLab instance without /api/v4, e.g. 'https://gitlab.example.com'. Default 'https://gitlab.com'."},{"name":"send_as","type":"VARCHAR","required":false,"redact":false,"description":"How the token is sent: 'bearer' (default; Authorization: Bearer), 'private' (PRIVATE-TOKEN header) or 'job' (JOB-TOKEN header, for CI job tokens)."},{"name":"per_page","type":"BIGINT","required":false,"redact":false,"description":"Items requested per API page, 1 to 100 (default 100)."},{"name":"timeout","type":"DOUBLE","required":false,"redact":false,"description":"Per-request timeout in seconds (default 30)."}],"requiredBy":["groups","projects","project","members","issues","issue_notes","merge_requests","merge_request_notes","merge_request_approvals","merge_request_diff_stats","commits","branches","tags","releases","contributors","pipelines","jobs","job_log","job_log_sections","environments","deployments"],"createSql":"CREATE SECRET gitlab (\n    TYPE gitlab,\n    token    '<GITLAB_TOKEN>',  -- secret\n    base_url '<base_url>',\n    send_as  '<send_as>',\n    per_page '<per_page>',\n    timeout  '<timeout>'\n);"}]},"deployment":{"local":{"methods":[{"id":"uvx","label":"uvx","icon":"simple-icons:python","steps":[{"title":"Attach with uvx","description":"Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.","lang":"sql","code":"ATTACH 'gitlab' AS gitlab (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-gitlab@v0.2.0 vgi-gitlab-worker'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'gitlab' AS gitlab (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-gitlab:0.2.0'\n);"}]}],"pinnedMethods":[{"id":"uvx","label":"uvx","icon":"simple-icons:python","steps":[{"title":"Attach with uvx","description":"Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.","lang":"sql","code":"ATTACH 'gitlab' AS gitlab (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-gitlab@v0.2.0 vgi-gitlab-worker'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'gitlab' AS gitlab (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-gitlab:0.2.0'\n);"}]}]},"selfHost":{"instructions":"https://github.com/Query-farm/vgi-gitlab","connectionGuide":"https://query.farm/vgi/connect-to-a-worker/","guidance":"Deploy using the connector repository instructions and use its supported HTTP or SSH transport. Replace example URLs with your actual deployment; configure its authentication."},"queryFarm":{"available":true,"console":"https://auth.queryfarm.cloud/console/new?worker=gitlab","organizationMonthlyMinimumUsd":10,"pricing":"https://query.farm/products/orchard/hosted/"},"publicDemo":null},"setup":{"extensions":{"duckdb":"SET allow_extension_repositories = 'allowed';\n\nCREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm\n    WITH PREFIX 'https://duckdb-extensions.query.farm';\n\nINSTALL vgi FROM query_farm;\nLOAD vgi FROM query_farm;","haybarn":"INSTALL vgi FROM community;\nLOAD vgi;"},"attachSql":"ATTACH 'gitlab' AS gitlab (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-gitlab@v0.2.0 vgi-gitlab-worker'\n);","attachOptions":[{"name":"projects","type":"VARCHAR","description":"Comma-separated project paths that gitlab.unified.runs / task_runs cover when a query names none, e.g. 'gitlab-org/cli,gitlab-org/gitlab-runner'.","required":false,"default":null},{"name":"group_path","type":"VARCHAR","description":"Group path whose (non-archived, subgroup-inclusive) projects the unified tables cover when a query names none, e.g. 'gitlab-org/ci-cd'.","required":false,"default":null}],"note":"Install and load VGI, attach the connector using the catalog alias shown here, then create required secrets. Replace placeholders and omit unused optional secret parameters. Satisfy file, network and credential prerequisites before executing a query."},"example":{"title":"Every subgroup of gitlab-org","sql":"SELECT full_path, visibility FROM gitlab.main.groups(parent := 'gitlab-org') ORDER BY full_path","requiresCredentials":true,"note":null,"objects":[{"name":"gitlab.main.groups","kind":"table_function","links":{"html":"https://query.farm/products/orchard/connectors/gitlab/#obj-main-groups","markdown":"https://query.farm/products/orchard/connectors/gitlab/objects/table_function.bWFpbg.Z3JvdXBz.md","json":"https://query.farm/products/orchard/api/v1/connectors/gitlab/objects/table_function.bWFpbg.Z3JvdXBz.json"}}],"evidence":{"status":"not_captured","note":"No executed result is recorded for this exact example. Catalog verification does not establish that this query ran."},"artifact":null},"objects":{"total":24,"index":"https://query.farm/products/orchard/api/v1/connectors/gitlab/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=gitlab&q={query}"},"agentTasks":["Using the gitlab worker, list the numbers and titles of the open issues labelled 'bug' in the project acme/widgets.","How many merge requests in acme/widgets have been merged, and what is the median number of hours from opening to merge?","Which pipelines of acme/widgets failed? Give their ids and refs.","Show the log lines of job 9003 in acme/widgets that mention 'ERROR'.","Count the CI runs of the project acme/widgets per unified status (queued, running, success, failed, cancelled, skipped).","List the subgroups of the acme group, and the non-archived projects in acme with their star counts.","What license does acme/widgets use, and how many commits does it have?","Who has maintainer or owner access to acme/widgets?"],"provenance":{"generatedAt":"2026-12-01T18:22:16+00:00","repository":"https://github.com/Query-farm/vgi-gitlab","harvest":{"status":"ok","method":"subprocess","error":null,"vgi_version":"9773130dde"},"catalogVerification":{"verified":true,"status":"passed","total":2,"passed":2,"failed":0,"needs_credentials":0,"location":"uvx --from git+https://github.com/Query-farm/vgi-gitlab@v0.2.0 vgi-gitlab-worker","transport":"subprocess","environment":{"vgi_extension_version":"9773130dde","haybarn_version":"2.0.1rc3","engine_version":"v2.0.1","python":"3.12.4","platform":"darwin_arm64","protocol_version":"3.4.0"},"checked_at":"2026-12-01T06:12:58+00:00"},"interpretation":"Catalog verification records the harvest environment. It is not proof that every query or current live API call succeeds. Only an example with captured_result has a saved result for that exact SQL."},"interpretation":["Missing, null, or undeclared metadata means unknown; do not invent defaults, credential scope, platform support or endpoint URLs.","Search is keyword retrieval, not proof of a capability. Read the exact object declaration before generating SQL.","A table and a table function can have the same name. Preserve parentheses and use the matching overload and schema.","Service credentials, external data availability and deployment authentication are separate requirements."]}