mirror of
https://github.com/karma-riuk/crab.git
synced 2025-07-05 05:28:13 +02:00
added the diff class to dataset entries
This commit is contained in:
@ -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:
|
||||||
|
Reference in New Issue
Block a user