Bug 1345660 - Specify kind: 'task' in actions.json. r?wlach draft
authorJonas Finnemann Jensen <jopsen@gmail.com>
Wed, 08 Mar 2017 15:10:34 -0800
changeset 495544 2067dcfd8c12fe83a7bc0ec45dd9becd5384ea26
parent 495323 800ba54a4bd52628833c4db005ddd182586666c4
child 548405 4c0bb1000b9741a5c8bdbc580a8a5caa9b3a0bea
push id48362
push userbmo:jopsen@gmail.com
push dateWed, 08 Mar 2017 23:11:09 +0000
reviewerswlach
bugs1345660
milestone55.0a1
Bug 1345660 - Specify kind: 'task' in actions.json. r?wlach * This adds a kind: 'task' property to actions in actions.json * This is already specified in the schema for actions.json MozReview-Commit-ID: JmlAZouVPIf
taskcluster/actions/registry.py
--- a/taskcluster/actions/registry.py
+++ b/taskcluster/actions/registry.py
@@ -257,16 +257,17 @@ def render_actions_json(parameters):
     global actions
     assert isinstance(parameters, Parameters), 'requires instance of Parameters'
     result = []
     for action in sorted(actions, key=lambda action: action.order):
         task = action.task_template_builder(parameters)
         if task:
             assert is_json(task), 'task must be a JSON compatible object'
             result.append({
+                'kind': 'task',
                 'title': action.title,
                 'description': action.description,
                 'context': action.context,
                 'schema': action.schema,
                 'task': task,
             })
     return {
         'version': 1,