lib/octopolo/github/label.rb in octopolo-1.6.0 vs lib/octopolo/github/label.rb in octopolo-1.7.0
- old
+ new
@@ -1,7 +1,8 @@
require "yaml"
require "octokit"
+require "pry"
module Octopolo
module GitHub
class Label
extend ConfigWrapper
@@ -35,9 +36,10 @@
# Public: Checks to see if label exists on remote, if not makes one.
#
# label - a label object
def self.first_or_create(label)
+ # binding.pry
unless all_from_repo.include?(label)
GitHub.add_label(config.github_repo, label.name, label.color)
end
end