Files
wehub-resource-sync 4e0f4422d0
build-docs / deploy (push) Waiting to run
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
chore: import upstream snapshot with attribution
2026-07-13 13:25:42 +08:00

1.1 KiB

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:

--env.repo.repo_name="testbed" # (1)!
--env.repo.type=preexisting
  1. Folder name at the root of the deployment
--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