Commit 79ba1ce0 authored by Andrew Gerrand's avatar Andrew Gerrand

misc/dashboard: tweak build fail notification email

R=rsc
CC=golang-dev
https://golang.org/cl/4170063
parent 90847a85
...@@ -8,5 +8,6 @@ mail_submit_to = "adg@golang.org" ...@@ -8,5 +8,6 @@ mail_submit_to = "adg@golang.org"
mail_submit_subject = "New Project Submitted" mail_submit_subject = "New Project Submitted"
mail_fail_to = "golang-dev@googlegroups.com" mail_fail_to = "golang-dev@googlegroups.com"
mail_fail_reply_to = "golang-dev@googlegroups.com"
mail_fail_subject = "%s broken by %s" mail_fail_subject = "%s broken by %s"
...@@ -351,13 +351,14 @@ class Build(webapp.RequestHandler): ...@@ -351,13 +351,14 @@ class Build(webapp.RequestHandler):
path = os.path.join(os.path.dirname(__file__), 'fail-notify.txt') path = os.path.join(os.path.dirname(__file__), 'fail-notify.txt')
body = template.render(path, { body = template.render(path, {
"builder": builder, "builder": builder,
"node": node, "node": node[:12],
"user": user, "user": user,
"desc": desc, "desc": desc,
"loghash": loghash "loghash": loghash
}) })
mail.send_mail( mail.send_mail(
sender=const.mail_from, sender=const.mail_from,
reply_to=const.mail_fail_reply_to,
to=const.mail_fail_to, to=const.mail_fail_to,
subject=subject, subject=subject,
body=body body=body
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment