Metadata extracted from the changelog produced by a plugin
| 55 | |
| 56 | @dataclass |
| 57 | class 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 |
no outgoing calls
searching dependent graphs…