Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

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 23, 2022
1 parent 9687a1d commit 131a845
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 @@ -16,7 +16,10 @@ tasks:
then: '[email protected]' # It must match what's in bors.toml
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 131a845

Please sign in to comment.