Skip to content

Commit fddfdeb

Browse files
authored
Fix Gantt issue when step titles have a colon (#36)
1 parent 184eb25 commit fddfdeb

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

dist/main/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/main/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.

dist/post/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/post/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/stepTracer.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ function generateTraceChartForSteps(job: WorkflowJobType): string {
2929
if (!step.started_at || !step.completed_at) {
3030
continue
3131
}
32-
chartContent = chartContent.concat('\t', `${step.name} : `)
32+
chartContent = chartContent.concat(
33+
'\t',
34+
`${step.name.replace(/:/g, '-')} : `
35+
)
3336

3437
if (step.name === 'Set up job' && step.number === 1) {
3538
chartContent = chartContent.concat('milestone, ')

0 commit comments

Comments
 (0)