lib/neetob/cli/github/labels/upsert.rb in neetob-0.2.3 vs lib/neetob/cli/github/labels/upsert.rb in neetob-0.2.4
- old
+ new
@@ -9,26 +9,24 @@
module Github
module Labels
class Upsert < Base
WHITE_COLOR_HEX_CODE = "ffffff"
- attr_accessor :repos, :required_labels_json_file_path, :sandbox, :all_neeto_repos, :name, :color, :description
+ attr_accessor :repos, :required_labels_json_file_path, :sandbox, :name, :color, :description
- def initialize(repos, required_labels_json_file_path = "", sandbox = false, all_neeto_repos = false,
+ def initialize(repos, required_labels_json_file_path = "", sandbox = false,
name = "", color = "", description = "")
super()
@repos = repos
@required_labels_json_file_path = required_labels_json_file_path
@sandbox = sandbox
- @all_neeto_repos = all_neeto_repos
@name = name
@color = color
@description = description
end
def run
- check_for_apps_and_all_neeto_repos_option(repos, all_neeto_repos)
- matching_repos = find_all_matching_apps_or_repos(repos, :github, sandbox, false, all_neeto_repos)
+ matching_repos = find_all_matching_apps_or_repos(repos, :github, sandbox)
inform_about_default_labels_file
matching_repos.each do |repo|
ui.info("\nWorking on #{repo} repo\n")
begin
required_labels = get_required_labels