mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 09:19:28 +00:00
Bug 1542233 - Add link to treeherder for all notification emails r=tomprince
This should make all emails from pushes link to treeherder as requested in the bug. I've made a try push and confirmed that the "thanks for your submission" email still happens with proper links. I am pretty sure this will set the link in non-try pushes correctly but if it doesn't, nothing will actually break afaict. Differential Revision: https://phabricator.services.mozilla.com/D37116 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
901885347c
commit
f0b92f7367
@ -293,14 +293,18 @@ tasks:
|
||||
then:
|
||||
cron: {$json: {$eval: 'cron'}}
|
||||
- tasks_for: '${tasks_for}'
|
||||
# Email format for try pushes
|
||||
- $if: 'tasks_for == "hg-push" && repository.project == "try"'
|
||||
# Email for all pushes should link to treeherder
|
||||
- $if: 'tasks_for == "hg-push"'
|
||||
then:
|
||||
notify:
|
||||
email:
|
||||
subject: "Thank you for your try submission of ${push.revision}. It's the best!"
|
||||
content: "Your try push has been submitted. It's the best! Use the link to view the status of your jobs."
|
||||
link:
|
||||
text: "Treeherder Jobs"
|
||||
href: "https://treeherder.mozilla.org/#/jobs?repo=${repository.project}&revision=${push.revision}"
|
||||
$merge:
|
||||
- link:
|
||||
text: "Treeherder Jobs"
|
||||
href: "https://treeherder.mozilla.org/#/jobs?repo=${repository.project}&revision=${push.revision}"
|
||||
# Email for try pushes should thank you for your revision
|
||||
- $if: 'repository.project == "try"'
|
||||
then:
|
||||
subject: "Thank you for your try submission of ${push.revision}. It's the best!"
|
||||
content: "Your try push has been submitted. It's the best! Use the link to view the status of your jobs."
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user