lib/release_tools/changelog/manager.rb
def update_changelog
        blob = repository.blob_at(repository.head.target_id, changelog_file)

        raise ::ReleaseTools::Changelog::NoChangelogError.new(changelog_file) if blob.nil?

        updater  = Updater.new(blob.content, version)
        markdown = MarkdownGenerator.new(version, unreleased_entries, **@params).to_s

        changelog_oid = repository.write(updater.insert(markdown), :blob)
        index.add(path: changelog_file, oid: changelog_oid, mode: 0o100644)
      end
# Updates `changelog_file` with the Markdown built from the individual
# unreleased changelog entries.
#
# Raises `NoChangelogError` if the changelog blob does not exist.
Updates `changelog_file` with the Markdown built from the individual
unreleased changelog entries.

Raises `NoChangelogError` if the changelog blob does not exist.
Updates ` changelog_file ` with the Markdown built from the individual unreleased changelog entries . Raises ` NoChangelogError ` if the changelog blob does not exist .
def update_changelog
        blob = repository.blob_at(repository.head.target_id, changelog_file)
        raise ::ReleaseTools::Changelog::NoChangelogError.new(changelog_file) if blob.nil?
        updater  = Updater.new(blob.content, version)
        markdown = MarkdownGenerator.new(version, unreleased_entries, **@params).to_s
        changelog_oid = repository.write(updater.insert(markdown), :blob)
        index.add(path: changelog_file, oid: changelog_oid, mode: 0o100644)
      end
def update_changelog blob = repository . blob_at ( repository . head . target_id , changelog_file ) raise :: ReleaseTools :: Changelog :: NoChangelogError . new ( changelog_file ) if blob . nil? updater = Updater . new ( blob . content , version ) markdown = MarkdownGenerator . new ( version , unreleased_entries , ** @params ) . to_s changelog_oid = repository . write ( updater . insert ( markdown ) , :blob ) index . add ( path : changelog_file , oid : changelog_oid , mode : 0o100644 ) end
Updates `changelog_file` with the Markdown built from the individual
unreleased changelog entries.
Updates ` changelog_file ` with the Markdown built from the individual unreleased changelog entries .