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
--- 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,