2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-03 23:15:31 +00:00

For #23614 - Set defaults for custom Fenix parameters

This will allow us to run taskgraph generation locally with the default
set of parameters.
This commit is contained in:
Andrew Halberstadt 2022-02-04 09:34:39 -05:00 committed by mergify[bot]
parent 7931e12f06
commit 6c59fd424b

View File

@ -14,13 +14,24 @@ from voluptuous import All, Any, Optional, Range, Required
from .release_promotion import read_version_file
def get_defaults(repo_root):
return {
"pull_request_number": None,
"release_type": "",
"shipping_phase": None,
"next_version": "",
"version": "",
}
extend_parameters_schema({
Required("pull_request_number"): Any(All(int, Range(min=1)), None),
Required("release_type"): text_type,
Optional("shipping_phase"): Any('build', 'ship', None),
Required("version"): text_type,
Required("next_version"): Any(None, text_type),
})
}, defaults_fn=get_defaults)
def get_decision_parameters(graph_config, parameters):