Skip to content

Commit 670f45a

Browse files
committed
Update codecov-wrapper for our own merge commit
1 parent d510619 commit 670f45a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

ci/codecov-wrapper

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ set -x
66

77
if [[ "$CI_COMMIT_BRANCH" =~ ^pr- ]]; then
88
PR=${CI_COMMIT_BRANCH#pr-}
9-
exec codecov --pr "$PR" "$@"
9+
parents=$(git show -s --format='%P %ae')
10+
if [ $(wc -w <<<"$parents") -eq 3 ] && [ "${parents##* }" = "fepitre-bot@qubes-os.org" ]; then
11+
commit_sha=$(cut -f 2 -d ' ' <<<"${parents}")
12+
else
13+
commit_sha=$(git show -s --format='%H')
14+
fi
15+
exec codecov --pr "$PR" --commit "$commit_sha" "$@"
1016
fi
1117
exec codecov "$@"

0 commit comments

Comments
 (0)