Bug 1415868 - rewrite actions to use kind=hook (DO NOT LAND) draft
authorDustin J. Mitchell <dustin@mozilla.com>
Wed, 25 Apr 2018 18:14:44 +0000
changeset 797333 ade1e2baac19624de16e89085c94070f85b7e2e3
parent 797332 1ebe5befd1964018d1ec46c6e7c28a1bb84e5da4
child 797334 701ce2201401388bd6c10ce49ae0386d954e0aec
push id110465
push userdmitchell@mozilla.com
push dateFri, 18 May 2018 22:17:50 +0000
bugs1415868
milestone62.0a1
Bug 1415868 - rewrite actions to use kind=hook (DO NOT LAND) This just rewrites the `retrigger` action. It does not consider the possibility of abuse. At a minimum, that will require not trusting ACTION_TASK, ACTION_PARAMETERS, etc. MozReview-Commit-ID: 6E3S38lju7q
taskcluster/taskgraph/actions/retrigger.py
--- a/taskcluster/taskgraph/actions/retrigger.py
+++ b/taskcluster/taskgraph/actions/retrigger.py
@@ -15,16 +15,18 @@ from .util import (
 from .registry import register_callback_action
 
 logger = logging.getLogger(__name__)
 
 
 @register_callback_action(
     title='Retrigger',
     name='retrigger',
+    kind='hook',
+    generic=True,
     symbol='rt',
     description=(
         'Create a clone of the task.\n\n'
     ),
     order=1,
     context=[{}],
     schema={
         'type': 'object',