lib/neetob/cli/github/make_pr/script.rb in neetob-0.4.2 vs lib/neetob/cli/github/make_pr/script.rb in neetob-0.4.3
- old
+ new
@@ -7,25 +7,25 @@
module Neetob
class CLI
module Github
module MakePr
class Script < Base
- attr_accessor :repos, :sandbox, :path_to_the_script_file, :pr_description, :should_fix_nanos
+ attr_accessor :repos, :sandbox, :path_to_the_script_file, :pr_description, :should_fix_nanos,
+ :should_fix_frontend_packages
def initialize(repos, path_to_the_script_file, pr_title,
- branch_name, pr_description, should_fix_nanos, sandbox = false)
+ branch_name, pr_description, should_fix_nanos, should_fix_frontend_packages = false, sandbox = false)
super(pr_title, branch_name)
@repos = repos
@sandbox = sandbox
@path_to_the_script_file = path_to_the_script_file
@pr_description = pr_description
@should_fix_nanos = should_fix_nanos
+ @should_fix_frontend_packages = should_fix_frontend_packages
end
def run
- matching_repos = should_fix_nanos ?
- add_org_suffix(find_all_matching_gems) :
- find_all_matching_apps_or_repos(repos, :github, sandbox)
+ matching_repos = build_matching_repos_list(should_fix_nanos, should_fix_frontend_packages)
delete_and_create_temp_neetob_dir
matching_repos.each do |repo|
ui.info("\n Working on #{repo} \n")
begin
shallow_clone_repo_in_tmp_dir(repo)