notes

package
v1.34.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package notes reads the notes an action leaves for people in res.notes: what it found that a later step, such as one that posts to a pull request or to a chat, can pass on, each with the attention it asks for.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

type Level string

Level is how much attention a note asks for. It is apart from the status of the step that left it: a step that passed can leave a critical note.

const (
	Info     Level = "info"     // To be read
	Warning  Level = "warning"  // To be looked at
	Critical Level = "critical" // To be acted on
)

type Note

type Note struct {
	Level Level
	// Title is a line naming the note, empty when it has none.
	Title string
	// Body is the note in Markdown.
	Body string
}

Note is one note of an action.

func Parse

func Parse(v any) ([]Note, []error)

Parse reads v, the value of res.notes, as a list of notes. A nil v is no notes. A v that is not a list gives none, and an entry of it that is not a note is left out; each error says which and why, for the caller to warn of. A note is an object with a level of info, warning or critical, a body that is not empty, and a title, if any, that is a string.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL