class Unwrappr::Github::PrSink
Saves Gemfile.lock annotations as Github
pull request comments.
Implements the `annotation_sink` interface as defined by the LockFileAnnotator
.
Public Class Methods
new(repo, pr_number, client)
click to toggle source
# File lib/unwrappr/github/pr_sink.rb, line 10 def initialize(repo, pr_number, client) @repo = repo @pr_number = pr_number @client = client end
Public Instance Methods
annotate_change(gem_change, message)
click to toggle source
# File lib/unwrappr/github/pr_sink.rb, line 16 def annotate_change(gem_change, message) @client.create_pull_request_comment( @repo, @pr_number, message, gem_change.sha, gem_change.filename, gem_change.line_number ) end