changed the structure of the entries

This commit is contained in:
Karma Riuk
2025-03-17 15:45:19 +01:00
parent b91c9fe977
commit adaa1c7fd4
2 changed files with 5 additions and 10 deletions

View File

@ -18,18 +18,13 @@ class Metadata:
reason_for_failure: str = ""
last_cmd_error_msg: str = ""
@dataclass
class Diff:
filename: str
patch: str
@dataclass
class DatasetEntry:
metadata: Metadata
files: Dict[str, FileData] # filename -> file data, files before the PR (before the first PR commits)
diffs_before: Dict[str, Diff] # filename -> diff, diffs between the opening of the PR and the comment
diffs_before: Dict[str, str] # filename -> diff, diffs between the opening of the PR and the comment
comment: str
diffs_after: Dict[str, Diff] # filename -> diff, changes after the comment
diffs_after: Dict[str, str] # filename -> diff, changes after the comment
@dataclass
class Dataset: