Skip to main content

parse_changeset

Function parse_changeset 

Source
pub fn parse_changeset(source: &str) -> Result<Changeset, ParseError>
Expand description

Parses one .changeset/*.md file’s contents.

Grammar (§6.1): a ----delimited frontmatter block starting on line 1, each non-blank, non-comment line inside it shaped <name>: <severity>, followed by the file’s remaining content as summary (trimmed). #-comment lines and blank lines inside the frontmatter block are skipped. CRLF line endings are normalized to LF before parsing.