๐ Supported SCM Providers
Early AI supports multiple source control platforms for test generation.
This page outlines which providers are supported and how to configure the --scm-provider flag for each one.
๐ ๏ธ How It Worksโ
All CLI-based agents accept the --scm-provider flag (or SCM_PROVIDER environment variable).
This tells the agent how to interpret commit metadata and which API to use for reading/writing data.
Example:
early generate-commit --scm-provider github
early generate-folder --scm-provider bitbucket
โ Supported Providersโ
| Provider | CLI Value | Status |
|---|---|---|
| GitHub | github | โ Supported |
| Bitbucket | bitbucket | โ Supported |
| GitLab | gitlab | ๐ก Planned |
โ ๏ธ If you omit the
--scm-providerflag, the default isgithub.
๐ Feature Support Matrixโ
| Feature | GitHub | Bitbucket | GitLab |
|---|---|---|---|
| โ Commit Detection | โ Yes | โ Yes | ๐ก Soon |
| โ PR Metadata | โ Yes | โ Yes | ๐ก Soon |
| โ Repo Scanning (Folder CLI) | โ Yes | โ Yes | ๐ก Soon |
| โ Auto-Commit | โ Yes | โ Yes | ๐ก Soon |
| โ NPM Package Auth | PAT | App PW | PAT |
โ๏ธ Example CLI Flagsโ
# GitHub (default)
early generate-commit \
--scm-provider github \
--token $GITHUB_TOKEN \
--ref-name main \
--commit-hash abc123
# Bitbucket
early generate-folder \
--scm-provider bitbucket \
--token $BITBUCKET_APP_PASSWORD \
--folder src/ \
--ref-name develop
You can also pass the provider as an environment variable:
export SCM_PROVIDER=bitbucket
early generate-folder
๐งช CI Configuration Tipsโ
- Bitbucket Pipelines: Use an App Password and store it securely.
- Jenkins / CircleCI: Make sure
SCM_PROVIDERis set explicitly. - GitHub Actions: You can omit
--scm-provider(defaults togithub).