GitHub AI Integration
Index GitHub docs and keep them synced on every push
About GitHub
GitHub is the world's largest code hosting platform. Engineering teams store not just code but also architecture decision records, runbooks, API references, and internal documentation in GitHub repositories.
How BeforeQuery works with GitHub
Everything you can do once the GitHub integration is connected.
Selective path indexing
Choose exactly which paths to index: docs/, README.md, ADRs/, runbooks/, or any markdown files. BeforeQuery only indexes what you specify.
Webhook auto-sync on push
BeforeQuery installs a webhook verified with X-Hub-Signature-256. Every push to your configured branch triggers an incremental re-index — docs stay current without manual intervention.
Self-hosted GitHub Enterprise
The GitHub integration supports GitHub Enterprise Server installations in addition to GitHub.com.
Branch-aware indexing
Configure which branch is indexed — main for stable docs, or a separate docs branch. Switch branches without re-configuring the integration.
How to connect GitHub
- Step 01
In BeforeQuery, create a source of type GitHub and authenticate with your GitHub account or organization.
- Step 02
Select the repository and configure which paths and branch to index. BeforeQuery will install the push webhook automatically.
- Step 03
Run the first sync. Subsequent syncs trigger automatically on every push to the configured branch.
GitHub — Frequently Asked Questions
Common questions about connecting BeforeQuery to GitHub.
Ready to connect GitHub?
Start free. No credit card required. Connect your first integration in under 5 minutes.