Documentation
¶
Index ¶
- func EscapeSummaryText(text string) string
- func EscapeWorkflowCommandMessage(message string) string
- func EscapeWorkflowCommandProperty(value string) string
- func SummaryCode(text string) string
- func SummaryLink(target, label string) string
- func WriteAnnotations(output io.Writer, annotations []Annotation)
- func WriteSummaryFromEnv(logOutput io.Writer, sections []SummarySection)
- type Annotation
- type SummarySection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscapeSummaryText ¶
EscapeSummaryText escapes user-controlled text for safe single-line HTML rendering in a GitHub step summary.
func EscapeWorkflowCommandMessage ¶
EscapeWorkflowCommandMessage escapes data written after the second :: in a GitHub Actions workflow command.
func EscapeWorkflowCommandProperty ¶
EscapeWorkflowCommandProperty escapes a workflow command property value such as a file path.
func SummaryCode ¶
SummaryCode renders a single-line string as HTML code in a GitHub step summary.
func SummaryLink ¶
SummaryLink renders a single-line hyperlink in a GitHub step summary.
func WriteAnnotations ¶
func WriteAnnotations(output io.Writer, annotations []Annotation)
WriteAnnotations emits GitHub Actions workflow command annotations so findings surface in the PR diff view and workflow logs.
func WriteSummaryFromEnv ¶
func WriteSummaryFromEnv(logOutput io.Writer, sections []SummarySection)
WriteSummaryFromEnv appends the provided summary sections to the GitHub step summary file when GITHUB_STEP_SUMMARY is available.
Types ¶
type Annotation ¶
Annotation is one GitHub Actions workflow command annotation.
type SummarySection ¶
SummarySection is one titled block in a GitHub Actions step summary.