From ff81d49f8306a164f71d575bc55ab7b30a30d02c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Sat, 2 Nov 2024 16:43:39 +0100 Subject: [PATCH] Workflow: Fix update date --- github_app_geo_project/module/workflow/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/github_app_geo_project/module/workflow/__init__.py b/github_app_geo_project/module/workflow/__init__.py index 93199fa68a..251c36ae4e 100644 --- a/github_app_geo_project/module/workflow/__init__.py +++ b/github_app_geo_project/module/workflow/__init__.py @@ -52,12 +52,11 @@ async def process( self, context: module.ProcessContext[None, dict[str, Any], dict[str, Any]] ) -> module.ProcessOutput[dict[str, Any], dict[str, Any]]: full_repo = f"{context.github_project.owner}/{context.github_project.repository}" - repo_data = context.transversal_status.setdefault( - context.github_project.owner + "/" + context.github_project.repository, {} - ) module_utils.manage_updated(context.transversal_status, full_repo, days_old=30) + repo_data = context.transversal_status[full_repo] + repo = context.github_project.github.get_repo(full_repo) stabilization_branches = [repo.default_branch]