Bug 1437738 - Update actions to new repo scopes draft
authorBrian Stack <bstack@mozilla.com>
Mon, 12 Feb 2018 22:56:15 -0800
changeset 754330 256cbbb1cca08c01d0555afdcc015d54b494367a
parent 754160 6d8f470b2579e7570f14e3db557264dc075dd654
push id98821
push userbstack@mozilla.com
push dateTue, 13 Feb 2018 06:56:47 +0000
bugs1437738
milestone60.0a1
Bug 1437738 - Update actions to new repo scopes MozReview-Commit-ID: 5kNs3OqqjMw
taskcluster/taskgraph/actions/registry.py
--- a/taskcluster/taskgraph/actions/registry.py
+++ b/taskcluster/taskgraph/actions/registry.py
@@ -175,17 +175,17 @@ def register_callback_action(name, title
         @register_task_action(name, title, description, order, context, schema)
         def build_callback_action_task(parameters):
             if not available(parameters):
                 return None
 
             match = re.match(r'https://(hg.mozilla.org)/(.*?)/?$', parameters['head_repository'])
             if not match:
                 raise Exception('Unrecognized head_repository')
-            repo_scope = 'assume:repo:{}/{}:*'.format(
+            repo_scope = 'assume:repo:{}/{}:branch:default'.format(
                 match.group(1), match.group(2))
 
             task_group_id = os.environ.get('TASK_ID', slugid())
 
             template = os.path.join(GECKO, '.taskcluster.yml')
 
             with open(template, 'r') as f:
                 taskcluster_yml = yaml.safe_load(f)