Skip to content

Commit

Permalink
Fix Gantt issue when step titles have a colon (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
tspascoal authored Mar 30, 2023
1 parent 184eb25 commit fddfdeb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/main/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/main/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/post/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/post/index.js.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion src/stepTracer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ function generateTraceChartForSteps(job: WorkflowJobType): string {
if (!step.started_at || !step.completed_at) {
continue
}
chartContent = chartContent.concat('\t', `${step.name} : `)
chartContent = chartContent.concat(
'\t',
`${step.name.replace(/:/g, '-')} : `
)

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

0 comments on commit fddfdeb

Please sign in to comment.