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.
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 ¶
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.