releam/semver

Types

pub type Bump {
  Bump(major: Bool, minor: Bool, patch: Bool)
}

Constructors

  • Bump(major: Bool, minor: Bool, patch: Bool)
pub type BumpType {
  Major
  Minor
  Patch
}

Constructors

  • Major
  • Minor
  • Patch

Functions

pub fn define_bump_type(
  commits: List(Commit),
) -> Option(BumpType)

Defines a semver bump type from a list of commits

pub fn define_commit_bump_type(
  current: Commit,
) -> Option(BumpType)

Defines a semver bump type according to the commit type

pub fn update_bump(bump: Bump, update: Option(BumpType)) -> Bump
Search Document