Files
Evandro Baginski 2c29546c7d Bug 2050585 - Use release_level from mozilla-taskgraph in gecko_taskgraph transforms r=taskgraph-reviewers,releng-reviewers,ahal
`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
2026-06-26 22:31:51 +00:00

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
)
}