Skip to content

Commit

Permalink
add: created_at and updated_at properties to repository (#2333)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jabolol authored Oct 8, 2024
1 parent a51536c commit 28d29b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions warehouse/oso_dagster/dlt_sources/github_repos/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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,
)


Expand Down

0 comments on commit 28d29b3

Please sign in to comment.