Skip to content

Commit 7d89af4

Browse files
authored
fix: relaxes gh types (#519)
1 parent ac83142 commit 7d89af4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/codegen/extensions/github/types/events/push.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ class PushEvent(BaseModel):
2424
base_ref: str | None = None
2525
compare: str
2626
commits: list[GitHubCommit]
27-
head_commit: GitHubCommit
27+
head_commit: GitHubCommit | None = None

src/codegen/extensions/github/types/pull_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class PullRequest(BaseModel):
4343
updated_at: str
4444
closed_at: Optional[str]
4545
merged_at: Optional[str]
46-
merge_commit_sha: str
46+
merge_commit_sha: Optional[str]
4747
assignee: Optional[GitHubUser]
4848
assignees: list[GitHubUser]
4949
requested_reviewers: list[GitHubUser]

0 commit comments

Comments
 (0)