From c815d8e5fc50f335228d2376506472bf6789c584 Mon Sep 17 00:00:00 2001 From: Benjamin Labrecque Date: Mon, 6 Jul 2026 12:31:47 +0200 Subject: [PATCH] fix: commit master hla nanes --- cli/src/core/git.py | 8 +-- cli/src/core/models.py | 2 +- services/000-master/app/config/hla_names.yml | 56 ++++++++++---------- 3 files changed, 34 insertions(+), 32 deletions(-) diff --git a/cli/src/core/git.py b/cli/src/core/git.py index 8ca7b40..ead099a 100644 --- a/cli/src/core/git.py +++ b/cli/src/core/git.py @@ -1,5 +1,4 @@ import logging -from pathlib import Path import git @@ -11,14 +10,17 @@ def git_push_changes( branch_name: str, service_dir_rel_path: str, registry_file_rel_path: str, + master_hla_names_rel_path: str, commit_msg: str, ): """ Push newly created service to Gitea """ try: - logger.info(f"Staging files inside: {service_dir_rel_path} and {registry_file_rel_path}...") - repo.index.add([service_dir_rel_path, registry_file_rel_path]) + logger.info( + f"Staging files inside: {service_dir_rel_path}, {registry_file_rel_path}, {master_hla_names_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/models.py b/cli/src/core/models.py index da29732..f00277e 100644 --- a/cli/src/core/models.py +++ b/cli/src/core/models.py @@ -99,4 +99,4 @@ class MasterHLANames(BaseModel): def write_to_config(self) -> None: with open(self.config_path, "w") as f: - yaml.safe_dump(self.model_dump(), f, indent=2) + yaml.safe_dump(self.model_dump(), f, indent=4) diff --git a/services/000-master/app/config/hla_names.yml b/services/000-master/app/config/hla_names.yml index 7f8078d..2956333 100644 --- a/services/000-master/app/config/hla_names.yml +++ b/services/000-master/app/config/hla_names.yml @@ -1,29 +1,29 @@ hla_apps: - - MASTER - - NTURNS - - DBPM3CURR - - TAUBPM - - TAUPCT - - SCRUBBING - - TIMING - - TUNE - - INJECTIONGUARD - - POSTMORTEMLOG - - TUNEBUMP - - PLOTS - - TOPUPTOOL - # - BEAMTRANSFERCHECK - - SHIFTTOOL - - TUNEFBX - - TUNEFBY - - OPTICSFF-X02S - - OPTICSFF-X03M - - OPTICSFF-X04S - - OPTICSFF-X05L - - OPTICSFF-X06S - - OPTICSFF-X07M - - OPTICSFF-X08S - - OPTICSFF-X09L - - OPTICSFF-X10S - - OPTICSFF-X11M - - OPTICSFF-X12S +- MASTER +- NTURNS +- DBPM3CURR +- TAUBPM +- TAUPCT +- SCRUBBING +- TIMING +- TUNE +- INJECTIONGUARD +- POSTMORTEMLOG +- TUNEBUMP +- PLOTS +- TOPUPTOOL +- SHIFTTOOL +- TUNEFBX +- TUNEFBY +- OPTICSFF-X02S +- OPTICSFF-X03M +- OPTICSFF-X04S +- OPTICSFF-X05L +- OPTICSFF-X06S +- OPTICSFF-X07M +- OPTICSFF-X08S +- OPTICSFF-X09L +- OPTICSFF-X10S +- OPTICSFF-X11M +- OPTICSFF-X12S +- COOL-SERVICE