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 53b6fc80c7
commit 7c03f03557
1 changed files with 2 additions and 0 deletions

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)),