summaryrefslogtreecommitdiffstats
path: root/taskcluster/taskgraph/actions/registry.py
diff options
context:
space:
mode:
Diffstat (limited to 'taskcluster/taskgraph/actions/registry.py')
-rw-r--r--taskcluster/taskgraph/actions/registry.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/taskcluster/taskgraph/actions/registry.py b/taskcluster/taskgraph/actions/registry.py
index 2fc848b..7931700 100644
--- a/taskcluster/taskgraph/actions/registry.py
+++ b/taskcluster/taskgraph/actions/registry.py
@@ -52,7 +52,7 @@ def hash_taskcluster_yml(filename):
def register_callback_action(name, title, symbol, description, order=10000,
context=[], available=lambda parameters: True,
- schema=None, kind='task', generic=True, cb_name=None):
+ schema=None, kind='hook', generic=True, cb_name=None):
"""
Register an action callback that can be triggered from supporting
user interfaces, such as Treeherder.
@@ -275,6 +275,7 @@ def register_callback_action(name, title, symbol, description, order=10000,
mem['registered'] = True
callbacks[cb_name] = cb
+ return cb
return register_callback