This commit is contained in:
2026-03-04 19:33:47 +03:00
parent 86fefb1e1e
commit 94a47e3e1a
27 changed files with 972 additions and 365 deletions

View File

@@ -22,6 +22,8 @@ from ...models.clean_release import (
)
# [DEF:CleanReleaseRepository:Class]
# @PURPOSE: Data access object for clean release lifecycle.
@dataclass
class CleanReleaseRepository:
candidates: Dict[str, ReleaseCandidate] = field(default_factory=dict)
@@ -86,4 +88,9 @@ class CleanReleaseRepository:
def get_violations_by_check_run(self, check_run_id: str) -> List[ComplianceViolation]:
return [v for v in self.violations.values() if v.check_run_id == check_run_id]
def clear_history(self) -> None:
self.check_runs.clear()
self.reports.clear()
self.violations.clear()
# [/DEF:CleanReleaseRepository:Class]
# [/DEF:backend.src.services.clean_release.repository:Module]