humbug_trac: Remove redundant 'Trac ' in subjects.
(imported from commit 309b477963cd0d3cca06eef2a685b1143c144455)
This commit is contained in:
parent
1fc6248725
commit
f3646d9c56
|
@ -35,7 +35,7 @@ def truncate(string, length):
|
||||||
return string[:length - 3] + "..."
|
return string[:length - 3] + "..."
|
||||||
|
|
||||||
def trac_subject(ticket):
|
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):
|
def send_update(ticket, content):
|
||||||
client.send_message({
|
client.send_message({
|
||||||
|
|
Loading…
Reference in a new issue