cli: add name to master subs
This commit is contained in:
+14
-2
@@ -11,6 +11,7 @@ def git_push_changes(
|
||||
service_dir_rel_path: str,
|
||||
registry_file_rel_path: str,
|
||||
master_hla_names_rel_path: str,
|
||||
master_ioc_subs_rel_path: str,
|
||||
commit_msg: str,
|
||||
):
|
||||
"""
|
||||
@@ -18,9 +19,20 @@ def git_push_changes(
|
||||
"""
|
||||
try:
|
||||
logger.info(
|
||||
f"Staging files inside: {service_dir_rel_path}, {registry_file_rel_path}, {master_hla_names_rel_path}..."
|
||||
f"Staging files inside: \
|
||||
{service_dir_rel_path}, \
|
||||
{registry_file_rel_path}, \
|
||||
{master_hla_names_rel_path}, \
|
||||
{master_ioc_subs_rel_path}..."
|
||||
)
|
||||
repo.index.add(
|
||||
[
|
||||
service_dir_rel_path,
|
||||
registry_file_rel_path,
|
||||
master_hla_names_rel_path,
|
||||
master_ioc_subs_rel_path,
|
||||
]
|
||||
)
|
||||
repo.index.add([service_dir_rel_path, registry_file_rel_path, master_hla_names_rel_path])
|
||||
|
||||
# Check if there are changes to avoid empty commit crashes
|
||||
if not repo.is_dirty(index=True, working_tree=False):
|
||||
|
||||
@@ -82,6 +82,7 @@ class ServiceCreator:
|
||||
registry_file_rel_path="config/services_registry.yml",
|
||||
# TODO: maybe assert/get correct master service dirname from registry
|
||||
master_hla_names_rel_path="services/000-master/current/app/config/hla_names.yml",
|
||||
master_ioc_subs_rel_path="services/000-master/current/ioc/AGEBD-CPCL-MASTER_main.subs",
|
||||
commit_msg=f"feature: add new service {service.name_lower}",
|
||||
)
|
||||
switch_branch(repo, original_branch)
|
||||
|
||||
Reference in New Issue
Block a user