We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d510619 commit 670f45aCopy full SHA for 670f45a
1 file changed
ci/codecov-wrapper
@@ -6,6 +6,12 @@ set -x
6
7
if [[ "$CI_COMMIT_BRANCH" =~ ^pr- ]]; then
8
PR=${CI_COMMIT_BRANCH#pr-}
9
- exec codecov --pr "$PR" "$@"
+ 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" "$@"
16
fi
17
exec codecov "$@"
0 commit comments