semantic_release.enums module

class semantic_release.enums.LevelBump(value, names=None, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

IntEnum representing valid types of bumps for a version. We use an IntEnum to enable ordering of levels.

MAJOR = 4
MINOR = 3
NO_RELEASE = 0
PATCH = 2
PRERELEASE_REVISION = 1
classmethod from_string(val: str) LevelBump[source]

Get the level from string representation. For backwards-compatibility, dashes are replaced with underscores so that: >>> LevelBump.from_string(“no-release”) == LevelBump.NO_RELEASE Equally, >>> LevelBump.from_string(“minor”) == LevelBump.MINOR