Skip to content
Snippets Groups Projects
Commit 30a4eb8e authored by jurgenhaas's avatar jurgenhaas
Browse files

Update hooks

parent 06968c73
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/python3
#!/usr/bin/python2
# coding=utf-8
__version__ = '1.0'
__author__ = 'Jürgen Haas'
......@@ -89,7 +89,7 @@ for id in issues:
connection.createAttachment(id, attachmentName, content, authorLogin=author, group=group)
comment = log.replace(id, '') + ' (see patch in attachment %s)' % attachmentName
else:
comment = log.replace(id, '') + "\n{code}" + diff + "\n{code}"
comment = log.replace(id, '') + "\n```\n" + diff + "\n```"
sys.stdout.write("Adding comment to issue %s ...\n" % id)
connection.executeCommand(id, 'comment', comment=comment, group=group, run_as=author)
......
#!/usr/bin/python3
#!/usr/bin/python2
# coding=utf-8
__version__ = '1.0'
__author__ = 'Jürgen Haas'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment