Ability to set a base commit for diffs to compare against.
This will allow you to set any SHA to be the base commit. Currently, in a pull request it uses where you branched off as the base commit. This can cause issues if you have a custom workflow.
In our case, on pull requests we
git checkout master git fetch origin [branch] git merge [SHA of branch head]
This means if there are additional commits on master, their coverage will now be part of the coverage diff for this pull.
master a . . b pull \ . . c
In this example, your diff will also include all the changes after
To fix this, I would want to pass the SHA for
b to be the base commit for diff.
bash <(curl -s https://codecov.io/bash) --base [COMMIT SHA]
In, my example I would set this to the SHA of
b so that I only get my files included in the diff.
This thread also raised the need for this Flag -N to set the base report does not work