From d729fc12ed2fda9496d7c79b0c2462668f79d35e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mindaugas=20Moz=C5=ABras?= Date: Fri, 26 Sep 2014 13:30:35 +0300 Subject: [PATCH] github_pr formatter: don't reduce position by one --- lib/pronto/formatter/github_pull_request_formatter.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/pronto/formatter/github_pull_request_formatter.rb b/lib/pronto/formatter/github_pull_request_formatter.rb index 270673f1..0c44bd80 100644 --- a/lib/pronto/formatter/github_pull_request_formatter.rb +++ b/lib/pronto/formatter/github_pull_request_formatter.rb @@ -16,9 +16,7 @@ def format(messages, repo) line end - position = line.position - 1 - - comment = Github::Comment.new(github_slug, sha, body, path, position) + comment = Github::Comment.new(github_slug, sha, body, path, line.position) create_comment(github_slug, sha, comment) end