trac-bot: Show summary in tickets.

(imported from commit fdf48c0e6cd0c7a94d7ddb1f982d2398381e310a)
This commit is contained in:
Tim Abbott 2012-10-26 12:46:17 -04:00
parent e8b54fc138
commit 7a19875c37

View file

@ -60,6 +60,8 @@ class HumbugPlugin(Component):
fields that have changed.
"""
content = "%s updated %s:\n\n" % (author, markdown_ticket_url(ticket))
if "summary" not in old_values:
content += "(%s)\n" % (ticket.values.get("summary"),)
for key in old_values.keys():
if key == "description":
content += '- Changed %s from %s to %s' % (key, markdown_block(old_values.get(key)),