MCPcopy Create free account
hub / github.com/bytebase/bytebase / BuildSummaryMarkdown

Function BuildSummaryMarkdown

action/github/summary.go:10–26  ·  view source on GitHub ↗
(w *world.World)

Source from the content-addressed store, hash-verified

8)
9
10func 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
28func buildOutputStagesMarkdown(w *world.World, sb *strings.Builder) {
29 if w.IsRollout && w.Rollout != nil {

Callers 1

writeGitHubStepSummaryFunction · 0.92

Calls 2

StringMethod · 0.65

Tested by

no test coverage detected