Skip to content

Commit

Permalink
Update codecov-wrapper for our own merge commit
Browse files Browse the repository at this point in the history
  • Loading branch information
marmarek committed Mar 18, 2022
1 parent d510619 commit 670f45a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ci/codecov-wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ set -x

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

0 comments on commit 670f45a

Please sign in to comment.