From 7ff8f2a6c9a47513b282fc6d41b94b9613387d60 Mon Sep 17 00:00:00 2001 From: jayhack Date: Sun, 16 Feb 2025 01:18:15 -0800 Subject: [PATCH] . --- src/codegen/extensions/github/types/events/push.py | 2 +- src/codegen/extensions/github/types/pull_request.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/codegen/extensions/github/types/events/push.py b/src/codegen/extensions/github/types/events/push.py index e5202a978..c3a7799bf 100644 --- a/src/codegen/extensions/github/types/events/push.py +++ b/src/codegen/extensions/github/types/events/push.py @@ -24,4 +24,4 @@ class PushEvent(BaseModel): base_ref: str | None = None compare: str commits: list[GitHubCommit] - head_commit: GitHubCommit + head_commit: GitHubCommit | None = None diff --git a/src/codegen/extensions/github/types/pull_request.py b/src/codegen/extensions/github/types/pull_request.py index 3ad03dca1..50228d3d6 100644 --- a/src/codegen/extensions/github/types/pull_request.py +++ b/src/codegen/extensions/github/types/pull_request.py @@ -43,7 +43,7 @@ class PullRequest(BaseModel): updated_at: str closed_at: Optional[str] merged_at: Optional[str] - merge_commit_sha: str + merge_commit_sha: Optional[str] assignee: Optional[GitHubUser] assignees: list[GitHubUser] requested_reviewers: list[GitHubUser]