lib/neetob/cli/github/make_pr/compliance_fix.rb in neetob-0.1.2 vs lib/neetob/cli/github/make_pr/compliance_fix.rb in neetob-0.1.4
- old
+ new
@@ -24,10 +24,11 @@
ui.info("\n Working on #{app} \n")
begin
clone_app_in_tmp_dir(app)
check_and_delete_remote_branch(app)
bundle_install(app)
+ fix_neeto_audit(app)
ui.info(add_commmit_and_push_changes(app))
delete_local_feature_branch(app)
res = client.create_pull_request(app, "main", BRANCH_NAME, PR_TITLE)
ui.success("PR created in \"#{app}\" project successfully.")
rescue StandardError => e
@@ -38,10 +39,14 @@
end
private
def bundle_install(app)
- `#{cd_to_app_in_tmp_dir(app)} && bundle`
+ `#{cd_to_app_in_tmp_dir(app)} && bundle install`
+ end
+
+ def fix_neeto_audit(app)
+ `#{cd_to_app_in_tmp_dir(app)} && bundle exec neeto-audit -a`
end
end
end
end
end