You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When uploading the coverage report for a Pull Request using Drone CI, the result is attributed to the target branch of the Pull Request.
Situation: I want to merge the branch feature/foo into the branch develop of the same repo and open a PR for it. Whenever the PR gets tested, the results on Code Climate for develop are overwritten with the results from the PR.
On Drone CI, the test-reporter tries to determine the branch from the DRONE_BRANCH environment variable.
For push events this is fine, but for Pull Requests it contains the target branch of the PR, not the source branch. As far as I can tell, there is no single environment variable that would fit the purpose. As a workaround, I use a script to set GIT_BRANCH to the correct branch before uploading.
The text was updated successfully, but these errors were encountered:
When uploading the coverage report for a Pull Request using Drone CI, the result is attributed to the target branch of the Pull Request.
Situation: I want to merge the branch
feature/foo
into the branchdevelop
of the same repo and open a PR for it. Whenever the PR gets tested, the results on Code Climate fordevelop
are overwritten with the results from the PR.On Drone CI, the test-reporter tries to determine the branch from the
DRONE_BRANCH
environment variable.test-reporter/env/git.go
Line 159 in f002281
For push events this is fine, but for Pull Requests it contains the target branch of the PR, not the source branch. As far as I can tell, there is no single environment variable that would fit the purpose. As a workaround, I use a script to set
GIT_BRANCH
to the correct branch before uploading.The text was updated successfully, but these errors were encountered: