(step)
| 222 | } |
| 223 | |
| 224 | function metaChain(step) { |
| 225 | const chain = [] |
| 226 | let meta = step && step.metaStep |
| 227 | while (meta) { |
| 228 | chain.unshift({ step: meta, key: meta }) |
| 229 | meta = meta.metaStep |
| 230 | } |
| 231 | if (!chain.length && step && step.parent && step.parent.title) { |
| 232 | chain.push({ step: { title: step.parent.title, status: step.status }, key: `meta:${step.parent.title}` }) |
| 233 | } |
| 234 | return chain |
| 235 | } |
| 236 | |
| 237 | function stepLogLine(entry) { |
| 238 | const indent = ' '.repeat(entry.depth) |