Set up source control
Choose a provider
Section titled “Choose a provider”Open Settings → Integrations and select Add source-control connection. Name the connection and choose the provider. Connections are shared across the deployment; repository access remains subject to organisation membership and provider permissions.
- For a native GitHub App connection, follow Set up GitHub as source control.
- For GitLab, use a token with the
apiscope and select the BattleTest organisation that receives its reviews. See Connect GitLab. - For the universal gateway, configure the gateway URL, provider, endpoint, authentication method, and organisation. See SCM gateway settings.
Verify the connection
Section titled “Verify the connection”- Enter the provider credentials and any repository used for testing.
- Select Test connection and read each result. The checks depend on the selected provider.
- Select Save connection.
- Configure the provider webhook using the URL and secret in the dialog. Native GitHub uses its GitHub webhook URL; gateway connections use their connection-specific callback.
- Open Change Reviews. Confirm a repository is accessible, then open or update a source change to verify event delivery.
A saved connection is configuration. A passing credential test, repository discovery, and webhook delivery verify different parts of the review workflow.