[][src]Function conventional_commits_next_semver::next_version

pub fn next_version<'a>(
    current_version: Version,
    commits: &'a [&'a Commit<'a>]
) -> Result<Version, Error<'a>>

Returns the next semantic release version.

Arguments

  • current_version: The current semantic release version.
  • commits: The list of conventional commits.

Returns

Ok(Version) if the version needs to be bumped, Err(Error::SameVersion) if the commits do not result in any version increment.`