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