Skip to content

Commit

Permalink
Fix: pass position when creating Comment from GitHub responses
Browse files Browse the repository at this point in the history
  • Loading branch information
mmozuras committed Sep 10, 2014
1 parent d10596b commit b74d51c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pronto/github.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ def initialize
def pull_comments(repo, sha)
@comment_cache["#{repo}/#{pull_id}/#{sha}"] ||= begin
client.pull_comments(repo, pull_id).map do |comment|
Comment.new(repo, sha, comment.body, comment.path, comment.body)
Comment.new(repo, sha, comment.body, comment.path, comment.position)
end
end
end

def commit_comments(repo, sha)
@comment_cache["#{repo}/#{sha}"] ||= begin
client.commit_comments(repo, sha).map do |comment|
Comment.new(repo, sha, comment.body, comment.path, comment.body)
Comment.new(repo, sha, comment.body, comment.path, comment.position)
end
end
end
Expand Down

0 comments on commit b74d51c

Please sign in to comment.