Skip to content

Commit 7f53c7c

Browse files
committed
Bug 2009019 - Add certain 'parameters' to actions.json for forwarding to in_tree_action hooks
1 parent 7e4245d commit 7f53c7c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

taskcluster/gecko_taskgraph/actions/registry.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,13 @@ def action_builder(parameters, graph_config, decision_task_id):
206206
"symbol": symbol,
207207
}
208208

209+
# The full parameter set is too large, and gets duplicated in
210+
# `actions.json` once per hook. So only pass in what's actually
211+
# necessary.
212+
filtered_params = {
213+
"repository_type": parameters["repository_type"],
214+
}
215+
209216
rv = {
210217
"name": name,
211218
"title": title,
@@ -240,6 +247,7 @@ def action_builder(parameters, graph_config, decision_task_id):
240247
"action": action,
241248
"repository": repository,
242249
"push": push,
250+
"parameters": filtered_params,
243251
},
244252
# and pass everything else through from our own context
245253
"user": {

0 commit comments

Comments
 (0)