Using codecov version 5.0.7, on a PR, commit_parent is defaulting to the previous commit instead of the upstream.
Within codecov showing This commit f9d9180 compared to fed6cb1 which is the comparing against the previous commit on the PR instead of anything on the upstream branch.
When overriding with parameter commit_parent: ${{ github.event.pull_request.base.sha || github.event.before || github.base.sha }}
I got
debug - 2024-11-22 18:33:46,377 -- Report creating result --- {"result": "RequestResult(error=RequestError(code='HTTP Error 400', params={}, description='{\"message\":\"Token required because branch is protected\"}\\n'), warnings=[], status_code=400, text='{\"message\":\"Token required because branch is protected\"}\\n')"}
Using codecov version
5.0.7
, on a PR, commit_parent is defaulting to the previous commit instead of the upstream.Within codecov showing
This commit f9d9180 compared to fed6cb1
which is the comparing against the previous commit on the PR instead of anything on the upstream branch.When overriding with parameter
commit_parent: ${{ github.event.pull_request.base.sha || github.event.before || github.base.sha }}
I gotTesting: https://github.com/opensearch-project/opensearch-migrations/pull/1155
Example Logs: