Skip to content

Commit b341e76

Browse files
committed
Bug 2009019 - Ensure we don't use as_slugid when rendering actions
This is a special function that the Github service passes in. For actions, we aren't using the Github service so the function isn't available.
1 parent de6a7d0 commit b341e76

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.taskcluster.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,12 +345,12 @@ tasks:
345345
$let:
346346
$merge:
347347
- trustDomain: enterprise
348-
ownTaskId: {$eval: as_slugid("decision_task")}
349348
isPullRequest: false
350349
eventType: '${tasks_for[7:]}' # strip out 'github-'
351350
eventAction: '${event["action"]}' # empty string if 'action' doesn't exist
352351
- $switch:
353352
'tasks_for == "github-push"':
353+
ownTaskId: {$eval: as_slugid("decision_task")}
354354
ownerEmail: '${event.pusher.email}'
355355
baseRepoUrl: '${event.repository.html_url}'
356356
repoUrl: '${event.repository.html_url}'
@@ -359,6 +359,7 @@ tasks:
359359
baseRev: '${event.before}'
360360
headRev: '${event.after}'
361361
'tasks_for[:19] == "github-pull-request"':
362+
ownTaskId: {$eval: as_slugid("decision_task")}
362363
ownerEmail: '${event.pull_request.user.login}@users.noreply.github.com'
363364
baseRepoUrl: '${event.pull_request.base.repo.html_url}'
364365
repoUrl: '${event.pull_request.head.repo.html_url}'
@@ -371,14 +372,14 @@ tasks:
371372
headRev: '${event.pull_request.head.sha}'
372373
isPullRequest: true
373374
'tasks_for in ["action", "pr-action"]':
375+
ownTaskId: '${ownTaskId}'
374376
ownerEmail: '${tasks_for}@noreply.mozilla.org'
375377
baseRepoUrl: '${repository.url}'
376378
repoUrl: '${repository.url}'
377379
project: '${repository.project}'
378380
ref: '${push.branch}'
379381
baseRev: '${push.revision}'
380382
headRev: '${push.revision}'
381-
ownTaskId: '${ownTaskId}'
382383
eventType: action
383384
eventAction: null
384385
in:

0 commit comments

Comments
 (0)