semantic_release.enums module¶ class semantic_release.enums.LevelBump(*values)[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 class semantic_release.enums.SemanticReleaseLogLevels(*values)[source]¶ Bases: IntEnum IntEnum representing the log levels used by semantic-release. CRITICAL = 50¶ DEBUG = 10¶ ERROR = 40¶ FATAL = 50¶ INFO = 20¶ SILLY = 5¶ WARNING = 30¶