Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
For #23614 - Set defaults for custom Fenix parameters
Browse files Browse the repository at this point in the history
This will allow us to run taskgraph generation locally with the default
set of parameters.
  • Loading branch information
ahal authored and mergify[bot] committed Feb 9, 2022
1 parent 7931e12 commit 6c59fd4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion taskcluster/fenix_taskgraph/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,24 @@

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):
Expand Down

0 comments on commit 6c59fd4

Please sign in to comment.