Skip to content

Commit

Permalink
fix: dont capital case stage names
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Sep 25, 2024
1 parent bb5ffaa commit 0e0e019
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/multi-stage-output.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class CIMultiStageOutput<T extends Record<string, unknown>> {
if (Date.now() - this.lastUpdateTime < this.messageTimeout) break
this.lastUpdateTime = Date.now()
if (!this.startTimes.has(stage)) this.startTimes.set(stage, Date.now())
ux.stdout(`${this.design.icons.current.figure} ${capitalCase(stage)}...`)
ux.stdout(`${this.design.icons.current.figure} ${stage}`)
this.printInfo(this.preStagesBlock, 3)
this.printInfo(
this.stageSpecificBlock?.filter((info) => info.stage === stage),
Expand All @@ -197,17 +197,17 @@ class CIMultiStageOutput<T extends Record<string, unknown>> {
const startTime = this.startTimes.get(stage)
const elapsedTime = startTime ? Date.now() - startTime : 0
const displayTime = readableTime(elapsedTime, this.timerUnit)
ux.stdout(`${this.design.icons[status].figure} ${capitalCase(stage)} (${displayTime})`)
ux.stdout(`${this.design.icons[status].figure} ${stage} (${displayTime})`)
this.printInfo(this.preStagesBlock, 3)
this.printInfo(
this.stageSpecificBlock?.filter((info) => info.stage === stage),
3,
)
this.printInfo(this.postStagesBlock, 3)
} else if (status === 'skipped') {
ux.stdout(`${this.design.icons[status].figure} ${capitalCase(stage)} - Skipped`)
ux.stdout(`${this.design.icons[status].figure} ${stage} - Skipped`)
} else {
ux.stdout(`${this.design.icons[status].figure} ${capitalCase(stage)}`)
ux.stdout(`${this.design.icons[status].figure} ${stage}`)
this.printInfo(this.preStagesBlock, 3)
this.printInfo(
this.stageSpecificBlock?.filter((info) => info.stage === stage),
Expand Down

0 comments on commit 0e0e019

Please sign in to comment.