Files
wehub-resource-sync 4e0f4422d0
Check Markdown links / markdown-link-check (push) Waiting to run
Pytest / test (3.11) (push) Waiting to run
Pytest / test (3.12) (push) Waiting to run
build-docs / deploy (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:25:42 +08:00

45 lines
1.1 KiB
Markdown

# Configuring repositories
We currently support the following repository types:
* A pre-existing repository (`PreExistingRepoConfig`)
* A local repository (`LocalRepoConfig`)
* A GitHub repository (`GithubRepoConfig`)
With `sweagent run`, you can specify the repository type with the `--env.repo` flag.
For example:
```bash title="From a pre-existing repository"
--env.repo.repo_name="testbed" # (1)!
--env.repo.type=preexisting
```
1. Folder name at the root of the deployment
```bash title="From a local repository"
--env.repo.path=/path/to/repo
--env.repo.type=local
```
All of these classes are defined in `sweagent.environment.repo`.
::: sweagent.environment.repo.PreExistingRepoConfig
options:
show_root_full_path: false
show_bases: false
::: sweagent.environment.repo.LocalRepoConfig
options:
show_root_full_path: false
show_bases: false
::: sweagent.environment.repo.GithubRepoConfig
options:
show_root_full_path: false
show_bases: false
::: sweagent.environment.repo.repo_from_simplified_input
options:
show_root_full_path: false
show_bases: false