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]