MCPcopy Index your code
hub / github.com/commitizen-tools/commitizen / Metadata

Class Metadata

commitizen/changelog.py:57–72  ·  view source on GitHub ↗

Metadata extracted from the changelog produced by a plugin

Source from the content-addressed store, hash-verified

55
56@dataclass
57class Metadata:
58 """
59 Metadata extracted from the changelog produced by a plugin
60 """
61
62 unreleased_start: int | None = None
63 unreleased_end: int | None = None
64 latest_version: str | None = None
65 latest_version_position: int | None = None
66 latest_version_tag: str | None = None
67
68 def __post_init__(self) -> None:
69 if self.latest_version and not self.latest_version_tag:
70 # Test syntactic sugar
71 # latest version tag is optional if same as latest version
72 self.latest_version_tag = self.latest_version
73
74
75@dataclass

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…