Bug 1967552 - Restore from-repo and to-repo as optional. r=taskgraph-reviewers,releng-reviewers,ahal
Thunderbird still needs these until it moves to git. Differential Revision: https://phabricator.services.mozilla.com/D250315
This commit is contained in:
committed by
rvandermeulen@mozilla.com
parent
20c4ad0e47
commit
fd7d2daf6d
@@ -36,6 +36,14 @@ def is_release_promotion_available(parameters):
|
|||||||
"enum": sorted(graph_config["merge-automation"]["behaviors"].keys()),
|
"enum": sorted(graph_config["merge-automation"]["behaviors"].keys()),
|
||||||
"default": "REPLACE ME",
|
"default": "REPLACE ME",
|
||||||
},
|
},
|
||||||
|
"from-repo": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The URI of the source repository",
|
||||||
|
},
|
||||||
|
"to-repo": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The push URI of the target repository",
|
||||||
|
},
|
||||||
"from-branch": {
|
"from-branch": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "The fx head of the source, such as central",
|
"description": "The fx head of the source, such as central",
|
||||||
@@ -63,7 +71,9 @@ def merge_automation_action(parameters, graph_config, input, task_group_id, task
|
|||||||
}
|
}
|
||||||
|
|
||||||
for field in [
|
for field in [
|
||||||
|
"from-repo",
|
||||||
"from-branch",
|
"from-branch",
|
||||||
|
"to-repo",
|
||||||
"to-branch",
|
"to-branch",
|
||||||
"fetch-version-from",
|
"fetch-version-from",
|
||||||
]:
|
]:
|
||||||
|
|||||||
@@ -50,6 +50,8 @@ graph_config_schema = Schema(
|
|||||||
str: {
|
str: {
|
||||||
Optional("from-branch"): str,
|
Optional("from-branch"): str,
|
||||||
Required("to-branch"): str,
|
Required("to-branch"): str,
|
||||||
|
Optional("from-repo"): str,
|
||||||
|
Optional("to-repo"): str,
|
||||||
Required("version-files"): [
|
Required("version-files"): [
|
||||||
{
|
{
|
||||||
Required("filename"): str,
|
Required("filename"): str,
|
||||||
|
|||||||
@@ -67,7 +67,9 @@ def add_payload_config(config, tasks):
|
|||||||
|
|
||||||
# Override defaults, useful for testing.
|
# Override defaults, useful for testing.
|
||||||
for field in [
|
for field in [
|
||||||
|
"from-repo",
|
||||||
"from-branch",
|
"from-branch",
|
||||||
|
"to-repo",
|
||||||
"to-branch",
|
"to-branch",
|
||||||
"fetch-version-from",
|
"fetch-version-from",
|
||||||
"lando-repo",
|
"lando-repo",
|
||||||
|
|||||||
Reference in New Issue
Block a user