added the diff class to dataset entries

This commit is contained in:
Karma Riuk
2025-03-14 12:05:39 +01:00
parent 6437efaa54
commit 9982e2bcc9

View File

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