Commits

Marcin Kuzminski committed da7e5f7

Linkify hipchat messages

Comments (0)

Files changed (1)

     for cs in changesets:
         idurl = '<a href="%s">%s</a>' % (repo_url + '/changeset/' + cs.raw_id,
                                          cs.short_id[:6])
-        msg.append('%s: %s \n' % (idurl, h.shorter(cs.message.rstrip('\n'), 160)))
+        msg.append('%s: %s \n' % (idurl, h.shorter(h.urlify_commit(cs.message.rstrip('\n'), kwargs.get('repository')), 200)))
 
     msg.append('</pre>')
     msg = ''.join(msg)
     hcapi.rooms.message({
         'room_id': HIPCHAT_ROOM,
         'from': HIPCHAT_FROM,
-        'message': msg
+        'message': h.shorter(msg, 1024*5)
     })
 
     return 0