class Pronto::Formatter::GithubPRLabelFormatter

Public Instance Methods

build_client(repo) click to toggle source
# File lib/pronto/formatter/github_pr_label_formatter.rb, line 8
def build_client(repo)
  Github.new(repo)
end
format(labels, repo, _) click to toggle source
# File lib/pronto/formatter/github_pr_label_formatter.rb, line 4
def format(labels, repo, _)
  build_client(repo).add_labels_to_issue(labels.map(&:name))
end