Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit deb6e15

Browse files
committed
Use updated repository obj
1 parent 7987e60 commit deb6e15

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

upload/views/combined_upload.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,10 @@ def post(self, request: HttpRequest, *args, **kwargs) -> Response:
151151
)
152152

153153
if upload:
154-
url = f"{settings.CODECOV_DASHBOARD_URL}/{repository.author.service}/{repository.author.username}/{repository.name}/commit/{commit.commitid}"
155-
archive_service = ArchiveService(repository)
154+
commitid = upload.report.commit.commitid
155+
upload_repository = upload.report.commit.repository
156+
url = f"{settings.CODECOV_DASHBOARD_URL}/{upload_repository.author.service}/{upload_repository.author.username}/{upload_repository.name}/commit/{commitid}"
157+
archive_service = ArchiveService(upload_repository)
156158
raw_upload_location = archive_service.create_presigned_put(
157159
upload.storage_path
158160
)

0 commit comments

Comments
 (0)