Insert a TOML header into the latest release note.
Insert a <!–more–> tag for larger release notes.
- lines (list of str) – The content of the release note.
- break_pos (int) – Line number before which a break should approximately be inserted.
The text with the inserted tag or no modification if it was sufficiently short.
list of str
build_hugo_md(filename, tag, bump)¶
Build the markdown release notes for Hugo.
Inserts the required TOML header with specific values and adds a break for long release notes.
Turn a release note filename into something sortable.
Parameters: filename (str) – A release note of expected filename format ‘<major>.<minor>.<patch>.md’. Returns: A pair of the major and minor versions as integers. Return type: tuple
Identify the kind of release by comparing to existing ones.
Identify the release type and create a new target file with TOML header.
Requires three arguments.