From 7df65ed67a901bf8149357686e9d771897f3675c Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Feb 16 2015 10:31:29 +0000 Subject: Adjust the internal library to require a filename when commenting on a p-r --- diff --git a/progit/lib.py b/progit/lib.py index 78aae8f..508382a 100644 --- a/progit/lib.py +++ b/progit/lib.py @@ -342,7 +342,8 @@ def add_user_to_project(session, project, user): return 'User added' -def add_pull_request_comment(session, request, commit, row, comment, user): +def add_pull_request_comment(session, request, commit, filename, row, + comment, user): ''' Add a comment to a pull-request. ''' user_obj = get_user(session, user) if not user_obj: @@ -356,6 +357,7 @@ def add_pull_request_comment(session, request, commit, row, comment, user): pr_comment = model.PullRequestComment( pull_request_id=request.id, commit_id=commit, + filename=filename, line=row, comment=comment, user_id=user_obj.id,