From 21a3a87be075faa05ea980e5240739c69101a4ba Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Tue, 20 Sep 2022 16:50:11 +0200 Subject: [PATCH] Bug 1789398 - ensure task["metadata"]["owner"] is not empty on github-push decision tasks Treeherder requires this in its ingestion pipeline, so if the pusher doesn't have an email then use their name instead. --- .taskcluster.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.taskcluster.yml b/.taskcluster.yml index 3f73e12f41a..83186660c21 100644 --- a/.taskcluster.yml +++ b/.taskcluster.yml @@ -12,7 +12,10 @@ tasks: then: '${tasks_for}@noreply.mozilla.org' else: $if: 'tasks_for == "github-push"' - then: '${event.pusher.email}' + then: + $if: 'event.pusher.email' + then: '${event.pusher.email}' + else: '${event.pusher.name}@users.noreply.github.com' else: $if: 'tasks_for == "github-pull-request"' then: '${event.pull_request.user.login}@users.noreply.github.com'