`release_level` now lives in `mozilla-taskgraph` and takes the project's release branches as an argument: `release_level(release_branches, params)`. Migrate the gecko_taskgraph transform consumers to import it from mozilla_taskgraph and pass `graph_config["release-branches"]`, and add the `release-branches` mapping to `taskcluster/config.yml` (migrated from `PROJECT_RELEASE_BRANCHES`; comm projects omitted since comm provides its own). Differential Revision: https://phabricator.services.mozilla.com/D308853
16 lines
527 B
Python
16 lines
527 B
Python
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
from mozilla_taskgraph.util.attributes import release_level
|
|
from taskgraph.util.task_context import custom_context
|
|
|
|
|
|
@custom_context("release-level")
|
|
def release_level_context(config, task):
|
|
return {
|
|
"release-level": release_level(
|
|
config.graph_config["release-branches"], config.params
|
|
)
|
|
}
|