Skip to content

Commit 9d7aeb4

Browse files
committed
fix: update waiting icon in deployment confirmation messages
1 parent 0bfc8b7 commit 9d7aeb4

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

__tests__/functions/deployment-confirmation.test.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ import {COLORS} from '../../src/functions/colors.js'
44
import {deploymentConfirmation} from '../../src/functions/deployment-confirmation.js'
55
import {API_HEADERS} from '../../src/functions/api-headers.js'
66

7-
const debugMock = vi.spyOn(core, 'debug')
8-
const infoMock = vi.spyOn(core, 'info')
97
const warningMock = vi.spyOn(core, 'warning')
10-
const setFailedMock = vi.spyOn(core, 'setFailed')
11-
const setOutputMock = vi.spyOn(core, 'setOutput')
128

139
var context
1410
var octokit
@@ -121,7 +117,7 @@ test('successfully prompts for deployment confirmation and gets confirmed by the
121117
'deployment confirmation comment id: 124'
122118
)
123119
expect(core.info).toHaveBeenCalledWith(
124-
`🕒 waiting ${COLORS.highlight}60${COLORS.reset} seconds for deployment confirmation`
120+
` waiting ${COLORS.highlight}60${COLORS.reset} seconds for deployment confirmation`
125121
)
126122
expect(core.info).toHaveBeenCalledWith(
127123
`✅ deployment confirmed by ${COLORS.highlight}monalisa${COLORS.reset} - sha: ${COLORS.highlight}abc123${COLORS.reset}`
@@ -173,7 +169,7 @@ test('successfully prompts for deployment confirmation and gets confirmed by the
173169
'deployment confirmation comment id: 124'
174170
)
175171
expect(core.info).toHaveBeenCalledWith(
176-
`🕒 waiting ${COLORS.highlight}60${COLORS.reset} seconds for deployment confirmation`
172+
` waiting ${COLORS.highlight}60${COLORS.reset} seconds for deployment confirmation`
177173
)
178174
expect(core.info).toHaveBeenCalledWith(
179175
`✅ deployment confirmed by ${COLORS.highlight}monalisa${COLORS.reset} - sha: ${COLORS.highlight}abc123${COLORS.reset}`

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/functions/deployment-confirmation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export async function deploymentConfirmation(context, octokit, data) {
8080
core.debug(`deployment confirmation comment id: ${commentId}`)
8181

8282
core.info(
83-
`🕒 waiting ${COLORS.highlight}${data.deployment_confirmation_timeout}${COLORS.reset} seconds for deployment confirmation`
83+
` waiting ${COLORS.highlight}${data.deployment_confirmation_timeout}${COLORS.reset} seconds for deployment confirmation`
8484
)
8585

8686
// Convert timeout to milliseconds for setTimeout

0 commit comments

Comments
 (0)