(w *world.World)
| 8 | ) |
| 9 | |
| 10 | func BuildSummaryMarkdown(w *world.World) string { |
| 11 | var sb strings.Builder |
| 12 | if w.OutputMap.Release != "" { |
| 13 | _, _ = sb.WriteString("Release: " + w.URL + "/" + w.OutputMap.Release + "\n") |
| 14 | } |
| 15 | if w.OutputMap.Plan != "" { |
| 16 | _, _ = sb.WriteString("Plan: " + w.URL + "/" + w.OutputMap.Plan + "\n") |
| 17 | } |
| 18 | if w.OutputMap.Rollout != "" { |
| 19 | _, _ = sb.WriteString("Rollout: " + w.URL + "/" + w.OutputMap.Rollout + "\n") |
| 20 | } |
| 21 | |
| 22 | // Add stage status table |
| 23 | buildOutputStagesMarkdown(w, &sb) |
| 24 | |
| 25 | return sb.String() |
| 26 | } |
| 27 | |
| 28 | func buildOutputStagesMarkdown(w *world.World, sb *strings.Builder) { |
| 29 | if w.IsRollout && w.Rollout != nil { |
no test coverage detected