Options
All
  • Public
  • Public/Protected
  • All
Menu

Builder for a changelog.

Hierarchy

Index

Constructors

Properties

DefaultChangelogFile: "CHANGELOG.md" = 'CHANGELOG.md'

Methods

  • Creates a changelog stream from the commits since the last release.

    Parameters

    • context: GitRepositoryContext

      The context information of the git repository.

    • logs: GitLog[]

      The conventional git logs since the last release.

    Returns Promise<Readable>

  • Gets the unreleased changes as changelog.

    Parameters

    • context: GitRepositoryContext

      The context information of the git repository.

    • logs: GitLog[]

      The conventional git logs since the last release.

    Returns Promise<string>

    A changelog with unreleased changes.

  • mergeWithChangelog(latestChangelogStream: Readable, changelogPath: string, context?: GitRepositoryContext): Promise<Readable>
  • Merges a changelog stream from the commits since the last release.

    Parameters

    • latestChangelogStream: Readable
    • changelogPath: string
    • Optional context: GitRepositoryContext

      The context information of the git repository.

    Returns Promise<Readable>

  • Writes a changelog.

    Parameters

    • context: GitRepositoryContext

      The context information of the git repository.

    • logs: GitLog[]

      The conventional git logs since the last release.

    Returns Promise<void>

  • getLatestChangelogName(changelogFileName: string): string
  • Derives the name of the seperated latest changelog from the main changelog name.

    Parameters

    • changelogFileName: string

      The name of the main changelog.

    Returns string

    The derived name for the latest changelog.