chore: update ui service manager of new service
This commit is contained in:
+4
-9
@@ -13,26 +13,21 @@ def git_push_changes(
|
||||
master_hla_names_rel_path: str,
|
||||
master_ioc_subs_rel_path: str,
|
||||
iocs_overview_rel_path: str,
|
||||
service_manager_ui_rel_path: str,
|
||||
commit_msg: str,
|
||||
):
|
||||
"""
|
||||
Push newly created service to Gitea
|
||||
"""
|
||||
logger.info(
|
||||
"Staging files inside: "
|
||||
f"{service_dir_rel_path}, "
|
||||
f"{registry_file_rel_path}, "
|
||||
f"{master_hla_names_rel_path}, "
|
||||
f"{master_ioc_subs_rel_path}..."
|
||||
f"{iocs_overview_rel_path}..."
|
||||
)
|
||||
files_to_stage = [
|
||||
service_dir_rel_path,
|
||||
registry_file_rel_path,
|
||||
master_hla_names_rel_path,
|
||||
master_ioc_subs_rel_path,
|
||||
iocs_overview_rel_path,
|
||||
service_manager_ui_rel_path,
|
||||
]
|
||||
logger.info(f"Staging files inside: {files_to_stage}")
|
||||
repo.index.add(files_to_stage)
|
||||
|
||||
# Check if there are changes to avoid empty commit crashes
|
||||
@@ -66,7 +61,7 @@ def git_push_changes(
|
||||
|
||||
# TODO: we could also force push... need to think about workflow though.
|
||||
raise RuntimeError(
|
||||
f"Failed to push to git due to: {e}.\nDoes the branch already exist in Gitea? If yes, it needs to be deleted first"
|
||||
f"Failed to push to git due to: {e}.\nDoes the branch already exist in Gitea? If yes, it needs to be deleted first."
|
||||
)
|
||||
|
||||
logger.info("Successfully pushed!")
|
||||
|
||||
@@ -89,6 +89,7 @@ class ServiceCreator:
|
||||
master_hla_names_rel_path="services/master/current/app/config/hla_names.yml",
|
||||
master_ioc_subs_rel_path="services/master/current/ioc/AGEBD-CPCL-MASTER_main.subs",
|
||||
iocs_overview_rel_path="docs/ioc/ioc_overview.md",
|
||||
service_manager_ui_rel_path="qt/A_BD_ServiceManager.ui",
|
||||
commit_msg=f"feature: add new service {service.name_lower}",
|
||||
)
|
||||
switch_branch(repo, original_branch)
|
||||
|
||||
Reference in New Issue
Block a user