Current behavior
In Sempahore CI, on pull requests, Cypress Cloud test runs show up under the target branch.
Desired behavior
Test runs should show up as being run on the current branch.
Test code to reproduce
Cypress uses SEMAPHORE_GIT_BRANCH as the branch to report test runs. However, for a pull request this points to target branch. This is a problem, because we want the current branch.
|
branch: env.SEMAPHORE_GIT_BRANCH, |
https://docs.semaphoreci.com/ci-cd-environment/environment-variables/#semaphore_git_branch
Cypress Version
12.8.1
Node version
16.13.0
Operating System
Ubuntu 20.04.6 LTS (Focal Fossa)
Debug Logs
No response
Other
No response
Current behavior
In Sempahore CI, on pull requests, Cypress Cloud test runs show up under the target branch.
Desired behavior
Test runs should show up as being run on the current branch.
Test code to reproduce
Cypress uses
SEMAPHORE_GIT_BRANCHas the branch to report test runs. However, for a pull request this points to target branch. This is a problem, because we want the current branch.cypress/packages/server/lib/util/ci_provider.js
Line 573 in a5b0cad
https://docs.semaphoreci.com/ci-cd-environment/environment-variables/#semaphore_git_branch
Cypress Version
12.8.1
Node version
16.13.0
Operating System
Ubuntu 20.04.6 LTS (Focal Fossa)
Debug Logs
No response
Other
No response