mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-10-02 09:43:15 +00:00
Update apps/agent/agent/webapp.py
Co-authored-by: Brace Sproul <braceasproul@gmail.com>
This commit is contained in:
parent
3422423b06
commit
a83f4e5cff
1 changed files with 0 additions and 3 deletions
|
|
@ -110,15 +110,12 @@ def get_repo_config_from_team_mapping(
|
||||||
|
|
||||||
config = LINEAR_TEAM_TO_REPO[team_identifier]
|
config = LINEAR_TEAM_TO_REPO[team_identifier]
|
||||||
|
|
||||||
# Legacy flat format: team maps directly to repo config
|
|
||||||
if "owner" in config and "name" in config:
|
if "owner" in config and "name" in config:
|
||||||
return config
|
return config
|
||||||
|
|
||||||
# New nested format: team maps to structure with projects
|
|
||||||
if "projects" in config and project_name:
|
if "projects" in config and project_name:
|
||||||
return config["projects"].get(project_name)
|
return config["projects"].get(project_name)
|
||||||
|
|
||||||
# Team has default repo (no project needed)
|
|
||||||
if "default" in config:
|
if "default" in config:
|
||||||
return config["default"]
|
return config["default"]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue