Replace @ with # to avoid spam for now.

This commit is contained in:
Alberto Planas 2014-05-20 13:49:14 +02:00
parent 9342132d50
commit 701fdfba6a
3 changed files with 5 additions and 5 deletions

View File

@ -31,7 +31,7 @@ class AcceptCommand(object):
# Write a comment in the project.
user = get_request(self.api.apiurl, str(req['id'])).get_creator()
self.comment.add_comment(project_name=project, comment='@%s: %s' % (user, msg))
self.comment.add_comment(project_name=project, comment='#%s: %s' % (user, msg))
requests.append(req['id'])

View File

@ -64,7 +64,7 @@ class SelectCommand(object):
# Write a comment in the project.
user = get_request(self.api.apiurl, str(request)).get_creator()
self.comment.add_comment(project_name=self.target_project,
comment='@%s: %s' % (user, msg))
comment='#%s: %s' % (user, msg))
return self.api.rq_to_prj(request, self.target_project)
elif 'staging' in request_project and (move or supersede):
@ -93,9 +93,9 @@ class SelectCommand(object):
# Write a comment in both projects.
user = get_request(self.api.apiurl, str(request)).get_creator()
# self.comment.add_comment(project_name=fprj,
# comment='@%s: %s' % (user, '\n'.join(msgs)))
# comment='#%s: %s' % (user, '\n'.join(msgs)))
self.comment.add_comment(project_name=self.target_project,
comment='@%s: %s' % (user, '\n'.join(msgs)))
comment='#%s: %s' % (user, '\n'.join(msgs)))
return self.api.move_between_project(fprj, request, self.target_project)
elif 'staging' in request_project and not move:

View File

@ -29,4 +29,4 @@ class UnselectCommand(object):
# Write a comment in the project.
user = get_request(self.api.apiurl, str(request)).get_creator()
self.comment.add_comment(project_name=staging_project,
comment='@%s: %s' % (user, msg))
comment='#%s: %s' % (user, msg))