class Pronto::Github
def create_pull_comment(comment)
def create_pull_comment(comment) if comment.path && comment.position @config.logger.log("Creating pull request comment on #{pull_id}") client.create_pull_comment( # Depending on the Octokit version the 6th argument can be either postion or line. We'll # provide the `line` as this argument and also provide the line in the options argument. # The API uses `line` and ignores position when `line` is provided. slug, pull_id, comment.body, pull_sha || comment.sha, comment.path, comment.position, { line: comment.position } ) else create_commit_comment(comment) end end