Turn # Unreleased into the section for a version being cut
Source: R/release_notes.R
promote_unreleased.RdIf # Unreleased has a non-empty body it is renamed
# {version} ({date}) and a fresh empty # Unreleased is inserted above
it. If it is empty (or absent) and no section for version exists, this
errors: a release with nothing to say about itself is the failure mode this
file exists to prevent.
Usage
promote_unreleased(md, version, date = Sys.Date())