From 4d5f2f8ab41e4aea6327b7e533eefcb2e688c6f0 Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Tue, 20 Sep 2022 10:57:06 +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 2a62f95e17..e803a28452 100644 --- a/.taskcluster.yml +++ b/.taskcluster.yml @@ -14,7 +14,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'