From 7f6ba3cbe488306d17e8e9b983b914f112fb3d31 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 30 2015 18:21:22 +0000 Subject: Adding a comment to a PR requires a commit, a filename and a row Even if they are empty --- diff --git a/milters/comment_email_milter.py b/milters/comment_email_milter.py index 3dc2a98..98d695c 100644 --- a/milters/comment_email_milter.py +++ b/milters/comment_email_milter.py @@ -190,7 +190,7 @@ class PagureMilter(Milter.Base): request = pagure.lib.get_request_by_uid( pagure.SESSION, - request_uid = uid + request_uid=uid ) if not request: @@ -201,6 +201,9 @@ class PagureMilter(Milter.Base): message = pagure.lib.add_pull_request_comment( pagure.SESSION, request=request, + commit=None, + filename=None, + row=None, comment=get_email_body(emailobj), user=clean_item(emailobj['From']), requestfolder=pagure.APP.config['REQUESTS_FOLDER'],