Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
View this page
Toggle table of contents sidebar

# semantic_release.enums module

class semantic_release.enums.LevelBump(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

  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

    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(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

  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