MCPcopy
hub / github.com/sourcegraph/checkup / renderMessage

Function renderMessage

notifier/mail/mail.go:78–86  ·  view source on GitHub ↗
(issues []types.Result)

Source from the content-addressed store, hash-verified

76}
77
78func renderMessage(issues []types.Result) string {
79 body := []string{"<b>Checkup has detected the following issues:</b>", "<br/><br/>", "<ul>"}
80 for _, issue := range issues {
81 format := "<li>%s - Status <b>%s</b></li>"
82 body = append(body, fmt.Sprintf(format, issue.Title, issue.Status()))
83 }
84 body = append(body, "</ul>")
85 return strings.Join(body, "\n")
86}

Callers 1

NotifyMethod · 0.85

Calls 1

StatusMethod · 0.80

Tested by

no test coverage detected