fix: commit changes to ioc_overview on new service add
This commit is contained in:
@@ -12,6 +12,7 @@ def git_push_changes(
|
||||
registry_file_rel_path: str,
|
||||
master_hla_names_rel_path: str,
|
||||
master_ioc_subs_rel_path: str,
|
||||
iocs_overview_rel_path: str,
|
||||
commit_msg: str,
|
||||
):
|
||||
"""
|
||||
@@ -24,6 +25,7 @@ def git_push_changes(
|
||||
f"{registry_file_rel_path}, "
|
||||
f"{master_hla_names_rel_path}, "
|
||||
f"{master_ioc_subs_rel_path}..."
|
||||
f"{iocs_overview_rel_path}..."
|
||||
)
|
||||
repo.index.add(
|
||||
[
|
||||
@@ -31,6 +33,7 @@ def git_push_changes(
|
||||
registry_file_rel_path,
|
||||
master_hla_names_rel_path,
|
||||
master_ioc_subs_rel_path,
|
||||
iocs_overview_rel_path,
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ class ServiceRegistry(BaseModel):
|
||||
|
||||
def write_to_config(self) -> None:
|
||||
with open(self.config_path, "w") as f:
|
||||
yaml.safe_dump(self.model_dump(), f)
|
||||
yaml.safe_dump(self.model_dump(), f, sort_keys=False)
|
||||
|
||||
|
||||
class MasterHLANames(BaseModel):
|
||||
|
||||
@@ -79,6 +79,7 @@ class ServiceCreator:
|
||||
# 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",
|
||||
iocs_overview_rel_path="docs/ioc/ioc_overview.md",
|
||||
commit_msg=f"feature: add new service {service.name_lower}",
|
||||
)
|
||||
switch_branch(repo, original_branch)
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
| IOC NAME | Port | Description |
|
||||
|---|---|---|
|
||||
| AGEBD-CPCL-MASTER | 50011 | IOC providing PVs for the service master application IOC enabling to monitor the health status of BD High Level Application Services with the alarm handler ALH |
|
||||
| AGEBD-CPCL-MASTER | 50011 | IOC providing PVs for the service master application IOC enabling to monitor the health status of BD High Level Application Services with the alarm handler ALH |
|
||||
|
||||
Reference in New Issue
Block a user