forked from mia/Aegisub
Fix some errors + better formatting for the custom email message. Also set it to only report problems and not successful builds.
Originally committed to SVN as r3867.
This commit is contained in:
parent
3e83cb7597
commit
e82ea9d8b2
1 changed files with 8 additions and 5 deletions
|
@ -749,6 +749,7 @@ c['status'].append(html.WebStatus(http_port="tcp:8001:interface=127.0.0.1", allo
|
|||
# Send out status emails.
|
||||
from buildbot.status import mail
|
||||
from buildbot.status.builder import Results
|
||||
from datetime import datetime
|
||||
def message(attrs):
|
||||
text = list()
|
||||
|
||||
|
@ -768,14 +769,16 @@ def message(attrs):
|
|||
|
||||
for change in attrs['changes']:
|
||||
text.append(" Committer : %s" % change.who)
|
||||
text.append(" Revision : %s http://devel.aegisub.org/changeset/$s" % (change.revision, change.revision))
|
||||
text.append(" Changeset : http://devel.aegisub.org/changeset/$s" % change.revision)
|
||||
text.append(" Time : %s" % change.when)
|
||||
text.append(" Revision : %s" % change.revision)
|
||||
text.append(" Changeset : http://devel.aegisub.org/changeset/%s" % change.revision)
|
||||
text.append(" Time : %s" % datetime.fromtimestamp(change.when).strftime("%Y-%m-%d %H:%M:%S"))
|
||||
text.append("")
|
||||
text.append(" Files")
|
||||
for file in change.files:
|
||||
text.append(" %s" % file)
|
||||
text.append("Log:\n%s" % change.comments)
|
||||
text.append(" Log:\n%s" % ' ' + change.comments.replace("\n", "\n "))
|
||||
text.append("")
|
||||
text.append("---------------------------------------------------------------")
|
||||
text.append("")
|
||||
text.append("")
|
||||
|
||||
|
@ -786,7 +789,7 @@ c['status'].append(mail.MailNotifier(fromaddr="tinderbox@aegisub.org",
|
|||
extraRecipients=["aegisub-tinderbox@aegisub.org"],
|
||||
sendToInterestedUsers=False,
|
||||
customMesg=message,
|
||||
mode="all",
|
||||
mode="problem",
|
||||
extraHeaders={'Reply-To':'aegisub-tinderbox@aegisub.org'}))
|
||||
|
||||
# IRC!
|
||||
|
|
Loading…
Reference in a new issue