Options
All
  • Public
  • Public/Protected
  • All
Menu

This class extending a release branch with some helpful functionality.

Hierarchy

Index

Constructors

Properties

Default base of this branch.

logger: Logger
projectConfig: ProjectConfig

Specifies the git flow entity type.

Methods

  • finish(name?: string, msg?: string): Promise<void>
  • Merges and finishes the branch of the branch type 'type'.

    Parameters

    • Optional name: string

      Name of the branch to be finished.

    • Optional msg: string

      Message to be set for finishing the branch.

    Returns Promise<void>

  • generateBranchName(name?: string): Promise<undefined | string>
  • Generates an default branch name.

    Parameters

    • Optional name: string

      A custom name for the branch.

    Returns Promise<undefined | string>

    The generated branch name.

  • generateBranchNameFromConfig(name: string): Promise<string>
  • Gets the branch name including the git-flow configuration.

    Parameters

    • name: string

      A given branch name without prefix.

    Returns Promise<string>

    The generated name.

  • list(withPrefix?: boolean): Promise<string[]>
  • Lists all branches of the type 'type'.

    Parameters

    • Optional withPrefix: boolean

      Indicates if the entities should be listed with their prefix.

    Returns Promise<string[]>

    The list of branches.

  • start(name?: string, base?: string): Promise<string>
  • Creates and starts a new release branch.

    Parameters

    • Optional name: string

      Name of the branch to be started.

    • Optional base: string

      Base of the branch should be started from.

    Returns Promise<string>

    The name of the release branch.

  • Stashes the current local changes.

    Parameters

    Returns Promise<boolean>

    Returns true if changes were stashed. Otherwise false.