lib/neetob/cli/github/make_pr/script.rb in neetob-0.4.16 vs lib/neetob/cli/github/make_pr/script.rb in neetob-0.4.19
- old
+ new
@@ -39,14 +39,14 @@
ui.error("#{repo_name_without_org_suffix(repo)} don't exist in current dir")
next
end
stash_local_changes(repo, local)
end
- shallow_clone_repo_in_tmp_dir(repo) if !local
+ shallow_clone_repo_in_tmp_dir!(repo) if !local
check_and_delete_remote_branch(repo, local)
update_script_file_permissions
execute_script(repo, local)
- ui.info(add_commmit_and_push_changes(repo, local))
+ ui.info(add_commmit_and_push_changes!(repo, local))
delete_local_feature_branch(repo, local)
pull_request = client.create_pull_request(repo, "main", branch_name, pr_title, pr_description)
ui.success("PR created in \"#{repo}\" project successfully.")
client.add_labels_to_an_issue(repo, pull_request[:number], labels.split(","))
rescue StandardError => e