mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 00:18:12 +00:00
humbug_trac: Remove redundant 'Trac ' in subjects.
(imported from commit 309b477963cd0d3cca06eef2a685b1143c144455)
This commit is contained in:
@@ -35,7 +35,7 @@ def truncate(string, length):
|
||||
return string[:length - 3] + "..."
|
||||
|
||||
def trac_subject(ticket):
|
||||
return truncate("Trac #%s: %s" % (ticket.id, ticket.values.get("summary")), 60)
|
||||
return truncate("#%s: %s" % (ticket.id, ticket.values.get("summary")), 60)
|
||||
|
||||
def send_update(ticket, content):
|
||||
client.send_message({
|
||||
|
||||
Reference in New Issue
Block a user