From 976a0e08a0900af9d9cc46163c6957e1404d6552 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Aug 24 2016 09:13:23 +0000 Subject: Adjust the comment so that it uses the user's username Otherwise it was using the specified key which could either be the username or an email address. --- diff --git a/pagure/lib/__init__.py b/pagure/lib/__init__.py index 03efeca..54f67c1 100644 --- a/pagure/lib/__init__.py +++ b/pagure/lib/__init__.py @@ -1291,7 +1291,8 @@ def edit_issue(session, issue, ticketfolder, user, add_issue_comment( session, issue, - comment='@%s changed the status to ``%s``' % (user, status), + comment='@%s changed the status to ``%s``' % ( + user_obj.username, status), user=user, ticketfolder=ticketfolder, notify=False,