Skip to content

Commit

Permalink
Bug 1789398 - ensure task["metadata"]["owner"] is not empty on github…
Browse files Browse the repository at this point in the history
…-push decision tasks

Treeherder requires this in its ingestion pipeline, so if the pusher
doesn't have an email then use their name instead.
  • Loading branch information
jcristau authored and mergify[bot] committed Sep 26, 2022
1 parent 24962fb commit 21a3a87
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 21a3a87

Please sign in to comment.