diff --git a/cli/src/core/git.py b/cli/src/core/git.py index 3cf6288..9743591 100644 --- a/cli/src/core/git.py +++ b/cli/src/core/git.py @@ -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): diff --git a/cli/src/core/service_creator.py b/cli/src/core/service_creator.py index 9602792..b7c3b6a 100644 --- a/cli/src/core/service_creator.py +++ b/cli/src/core/service_creator.py @@ -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)