Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit 4fc78f5

Browse files
authored
Merge pull request #146 from codecov/hotfix/semaphore
Fix semaphore service
2 parents 2ed978c + 11347a9 commit 4fc78f5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/services/semaphore.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
configuration: function() {
77
console.log(' Semaphore 1.x CI Detected')
88
return {
9-
service: 'semaphore1x',
9+
service: 'semaphore',
1010
build:
1111
process.env.SEMAPHORE_BUILD_NUMBER +
1212
'.' +

lib/services/semaphore2x.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
configuration: function() {
77
console.log(' Semaphore 2.x CI Detected')
88
return {
9-
service: 'semaphore2x',
9+
service: 'semaphore',
1010
branch: process.env.SEMAPHORE_GIT_BRANCH,
1111
build: process.env.SEMAPHORE_WORKFLOW_ID,
1212
commit: process.env.SEMAPHORE_GIT_SHA,

test/services/semaphore.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('Semaphore CI Provider', function() {
3030
process.env.BRANCH_NAME = 'master'
3131
process.env.SEMAPHORE_REPO_SLUG = 'owner/repo'
3232
expect(semaphore.configuration()).toEqual({
33-
service: 'semaphore1x',
33+
service: 'semaphore',
3434
commit: '5678',
3535
build: '1234.1',
3636
branch: 'master',

test/services/semaphore2x.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('Semaphore 2.x CI Provider', function() {
2828
process.env.SEMAPHORE_GIT_SHA = '5c84719708b9b649b9ef3b56af214f38cee6acde'
2929
process.env.SEMAPHORE_WORKFLOW_ID = '65c9bb1c-aeb6-41f0-b8d9-6fa177241cdf'
3030
expect(semaphore2.configuration()).toEqual({
31-
service: 'semaphore2x',
31+
service: 'semaphore',
3232
branch: 'development',
3333
build: '65c9bb1c-aeb6-41f0-b8d9-6fa177241cdf',
3434
commit: '5c84719708b9b649b9ef3b56af214f38cee6acde',

0 commit comments

Comments
 (0)