MCPcopy Index your code
hub / github.com/ComposioHQ/composio / _get_bumped_version

Function _get_bumped_version

python/scripts/bump.py:34–47  ·  view source on GitHub ↗
(current: VersionInfo, bump_type: BumpType)

Source from the content-addressed store, hash-verified

32
33
34def _get_bumped_version(current: VersionInfo, bump_type: BumpType) -> VersionInfo:
35 if bump_type == BumpType.MAJOR:
36 return current.next_version("major")
37
38 if bump_type == BumpType.MINOR:
39 return current.next_version("minor")
40
41 if bump_type == BumpType.PATCH:
42 return current.next_version("patch")
43
44 if bump_type == BumpType.PRE:
45 return current.next_version("prerelease")
46
47 return current.bump_build(token="post")
48
49
50def _skip(file: Path) -> bool:

Callers 1

_get_version_updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…