Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion landoapi/api/try_push.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def post_patches(data: dict):
patch_format = PatchFormat(data["patch_format"])

environment_repos = get_repos_for_env(current_app.config.get("ENVIRONMENT"))
try_repo = environment_repos.get("try")
try_repo = environment_repos.get(data.get("try_repo"), "try")
if not try_repo:
raise ProblemException(
500,
Expand Down
11 changes: 11 additions & 0 deletions landoapi/repos.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,17 @@ def phab_identifier(self) -> str | None:
force_push=True,
native_git_source="https://github.com/mozilla-firefox/firefox",
),
"try-comm-central": Repo(
tree="try-comm-central",
url="https://hg.mozilla.org/try-comm-central",
push_path="ssh://hg.mozilla.org/try-comm-central",
pull_path="https://hg.mozilla.org/comm-unified",
access_group=SCM_LEVEL_1,
short_name="try-cc",
is_phabricator_repo=False,
force_push=True,
native_git_source="https://github.com/thunderbird/thunderbird-desktop",
),
},
}

Expand Down
5 changes: 5 additions & 0 deletions landoapi/spec/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,11 @@ paths:
enum: ["git", "hg"]
description : |
The VCS that the `base_commit` hash is based on. Default is `hg`.
try_repo:
type: string
enum: ["try", "try-comm-central"]
description : |
The try repo to submit the patch to.
responses:
201:
description: Push was submitted successfully.
Expand Down