diff --git a/cli/CHANGELOG.md b/cli/CHANGELOG.md index b9b541bd3bd8..d0d6538e0fbd 100644 --- a/cli/CHANGELOG.md +++ b/cli/CHANGELOG.md @@ -1,4 +1,12 @@ +## 13.7.4 + +_Released 4/16/2024 (PENDING)_ + +**Misc:** + +- We now capture the [Semaphore](https://semaphoreci.com/) CI provider's environment variable [`SEMAPHORE_GIT_PR_NUMBER`](https://docs.semaphoreci.com/ci-cd-environment/environment-variables/#semaphore_git_pr_number) to display the linked PR number in the Cloud. Addressed in [#29314](https://github.com/cypress-io/cypress/pull/29314). + ## 13.7.3 _Released 4/11/2024_ diff --git a/packages/server/lib/util/ci_provider.js b/packages/server/lib/util/ci_provider.js index 35990f6c2b84..927ce53e8714 100644 --- a/packages/server/lib/util/ci_provider.js +++ b/packages/server/lib/util/ci_provider.js @@ -340,6 +340,7 @@ const _providerCiParams = () => { 'SEMAPHORE_EXECUTABLE_UUID', 'SEMAPHORE_GIT_BRANCH', 'SEMAPHORE_GIT_DIR', + 'SEMAPHORE_GIT_PR_NUMBER', 'SEMAPHORE_GIT_REF', 'SEMAPHORE_GIT_REF_TYPE', 'SEMAPHORE_GIT_REPO_SLUG', diff --git a/packages/server/test/unit/util/ci_provider_spec.js b/packages/server/test/unit/util/ci_provider_spec.js index 60884a61e180..6a05a20ad980 100644 --- a/packages/server/test/unit/util/ci_provider_spec.js +++ b/packages/server/test/unit/util/ci_provider_spec.js @@ -904,6 +904,7 @@ describe('lib/util/ci_provider', () => { SEMAPHORE_GIT_BRANCH: 'show-semaphore-v2-266', SEMAPHORE_GIT_WORKING_BRANCH: 'show-semaphore-v2-266', SEMAPHORE_GIT_DIR: 'cypress-example-kitchensink', + SEMAPHORE_GIT_PR_NUMBER: '1', SEMAPHORE_GIT_REF: 'refs/heads/show-semaphore-v2-266', SEMAPHORE_GIT_REF_TYPE: 'branch', SEMAPHORE_GIT_REPO_SLUG: 'cypress-io/cypress-example-kitchensink', @@ -937,6 +938,7 @@ describe('lib/util/ci_provider', () => { semaphoreGitBranch: 'show-semaphore-v2-266', semaphoreGitWorkingBranch: 'show-semaphore-v2-266', semaphoreGitDir: 'cypress-example-kitchensink', + semaphoreGitPrNumber: '1', semaphoreGitRef: 'refs/heads/show-semaphore-v2-266', semaphoreGitRefType: 'branch', semaphoreGitRepoSlug: 'cypress-io/cypress-example-kitchensink',