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

Commit ae91725

Browse files
committed
fix 5
1 parent e7f22be commit ae91725

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

upload/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,11 +449,11 @@ def determine_upload_commit_to_use(
449449
# Check if this is a merge commit and, if so, use the commitid of the commit being merged into per the merge commit message.
450450
# See https://docs.codecov.io/docs/merge-commits for more context.
451451
service = repository.author.service
452+
commitid = upload_params.get("commit", "")
452453
if service.startswith("github") and not upload_params.get(
453454
"_did_change_merge_commit"
454455
):
455456
token = try_to_get_best_possible_bot_token(repository)
456-
commitid = upload_params.get("commit", "")
457457
if token is None:
458458
return commitid
459459
# Get the commit message from the git provider and check if it's structured like a merge commit message

0 commit comments

Comments
 (0)