Actions#
The mozilla-taskgraph
package provides a series of pre-defined actions that
can be enabled on a repository.
The provided actions are:
Enabling Actions#
None of the actions are enabled by default, consumers must explicitly opt in to
the actions they want with the enable_action()
function. This is typically called from the
register()
function.
For example:
from mozilla_taskgraph.actions import enable_action
def register(graph_config):
enable_action("release-promotion")
mozilla-taskgraph
provides default values for the action that should work
out of the box. But if desired, the action settings can be overridden with the
keyword args:
from mozilla_taskgraph.actions import enable_action
def is_available(params):
...
def register(graph_config):
enable_action("release-promotion", available=is_available)