GitLab AI Integration
Sync GitLab repository docs with webhook auto-indexing
About GitLab
GitLab is a complete DevOps platform used by enterprises and open-source projects, with a particularly strong following among teams that prefer self-hosted version control. Many organizations store their internal documentation entirely within GitLab repositories.
How BeforeQuery works with GitLab
Everything you can do once the GitLab integration is connected.
Self-hosted GitLab support
Connect BeforeQuery to any GitLab instance — gitlab.com, self-managed Community Edition, or Enterprise Edition — using a personal access token or deploy token.
GitLab token webhook verification
Incoming webhooks from GitLab are verified with the X-Gitlab-Token header, ensuring only authenticated GitLab push events trigger re-indexing.
Configurable path and branch scope
Index specific directories (docs/, wiki/) on a chosen branch. Exclude files matching glob patterns to skip generated output.
GitLab Wiki indexing
Optionally index your GitLab project or group wiki alongside repository markdown files.
How to connect GitLab
- Step 01
Add a GitLab source in BeforeQuery and enter your GitLab instance URL and access token.
- Step 02
Select the repository, branch, and paths to index. BeforeQuery registers a push webhook in your GitLab project automatically.
- Step 03
Trigger the first sync. The index updates automatically on every push to the configured branch going forward.
GitLab — Frequently Asked Questions
Common questions about connecting BeforeQuery to GitLab.
Ready to connect GitLab?
Start free. No credit card required. Connect your first integration in under 5 minutes.