mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-17 15:26:23 +00:00
[fenix] 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.
This commit is contained in:
parent
70539773a0
commit
a493f1b1e0
@ -14,7 +14,10 @@ tasks:
|
||||
then: '${tasks_for}@noreply.mozilla.org'
|
||||
else:
|
||||
$if: 'tasks_for == "github-push"'
|
||||
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'
|
||||
|
Loading…
Reference in New Issue
Block a user