File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
src/sentry/scm/private/providers Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -1077,15 +1077,6 @@ def map_git_commit_object(raw: dict[str, Any]) -> GitCommitObject:
10771077 )
10781078
10791079
1080- def map_review_comment (raw : dict [str , Any ]) -> ReviewComment :
1081- return ReviewComment (
1082- id = str (raw ["id" ]),
1083- html_url = raw ["html_url" ],
1084- path = raw ["path" ],
1085- body = raw ["body" ],
1086- )
1087-
1088-
10891080def map_review (raw : dict [str , Any ]) -> Review :
10901081 return Review (
10911082 id = str (raw ["id" ]),
@@ -1184,7 +1175,9 @@ def deserialize_pull_request_review_comment(content: bytes) -> ReviewComment:
11841175 comment = msgspec .json .decode (content , type = GitHubPullRequestReviewComment )
11851176 return {
11861177 "author_association" : comment .author_association ,
1187- "author" : {"id" : str (comment .user .id ), "username" : comment .user .login },
1178+ "author" : Author (id = str (comment .user .id ), username = comment .user .login )
1179+ if comment .user
1180+ else None ,
11881181 "body" : comment .body ,
11891182 "commit_sha" : comment .original_commit_id ,
11901183 "created_at" : comment .created_at .isoformat (),
You can’t perform that action at this time.
0 commit comments