From 28d29b37a4f58f1694d092b1ab87d82829423cd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20R=C3=ADos?= Date: Tue, 8 Oct 2024 22:38:43 +0200 Subject: [PATCH] add: `created_at` and `updated_at` properties to repository (#2333) --- warehouse/oso_dagster/dlt_sources/github_repos/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/warehouse/oso_dagster/dlt_sources/github_repos/__init__.py b/warehouse/oso_dagster/dlt_sources/github_repos/__init__.py index d442db439..f7cbe8310 100644 --- a/warehouse/oso_dagster/dlt_sources/github_repos/__init__.py +++ b/warehouse/oso_dagster/dlt_sources/github_repos/__init__.py @@ -60,6 +60,8 @@ class Repository(BaseModel): license_spdx_id: str license_name: str language: str + created_at: Optional[datetime] + updated_at: Optional[datetime] class InvalidGithubURL(Exception): @@ -129,6 +131,8 @@ def gh_repository_to_repository( url=repo.html_url, is_fork=repo.fork, language=repo.language or "", + created_at=repo.created_at or None, + updated_at=repo.updated_at or None, )