@@ -222,7 +222,7 @@ def parse_repo(repo_root: Path) -> RepoContents:
222222
223223def plan (repo_config : RepoConfig , repo_path : Path , skip_source_validation : bool ):
224224 os .chdir (repo_path )
225- repo = _get_repo_contents (repo_path , repo_config .project )
225+ repo = _get_repo_contents (repo_path , repo_config .project , repo_config )
226226 for project in repo .projects :
227227 repo_config .project = project .name
228228 store , registry = _get_store_and_registry (repo_config )
@@ -239,7 +239,11 @@ def plan(repo_config: RepoConfig, repo_path: Path, skip_source_validation: bool)
239239 click .echo (infra_diff .to_string ())
240240
241241
242- def _get_repo_contents (repo_path , project_name : Optional [str ] = None ):
242+ def _get_repo_contents (
243+ repo_path ,
244+ project_name : Optional [str ] = None ,
245+ repo_config : Optional [RepoConfig ] = None ,
246+ ):
243247 sys .dont_write_bytecode = True
244248 repo = parse_repo (repo_path )
245249
@@ -248,7 +252,12 @@ def _get_repo_contents(repo_path, project_name: Optional[str] = None):
248252 print (
249253 f"No project found in the repository. Using project name { project_name } defined in feature_store.yaml"
250254 )
251- repo .projects .append (Project (name = project_name ))
255+ project_description = (
256+ repo_config .project_description if repo_config else None
257+ )
258+ repo .projects .append (
259+ Project (name = project_name , description = project_description or "" )
260+ )
252261 else :
253262 print (
254263 "No project found in the repository. Either define Project in repository or define a project in feature_store.yaml"
@@ -389,7 +398,7 @@ def create_feature_store(
389398
390399def apply_total (repo_config : RepoConfig , repo_path : Path , skip_source_validation : bool ):
391400 os .chdir (repo_path )
392- repo = _get_repo_contents (repo_path , repo_config .project )
401+ repo = _get_repo_contents (repo_path , repo_config .project , repo_config )
393402 for project in repo .projects :
394403 repo_config .project = project .name
395404 store , registry = _get_store_and_registry (repo_config )
0 commit comments