Skip to content

Commit cd08bab

Browse files
committed
Add the Deep Review run label to the public contract
CustomerReviewDetail carries is_deep_review, present and true when the run is a Deep Review (prooflinedev/proofline#4911). scripts/generate.py regenerates the model from the contract.
1 parent a87dcd2 commit cd08bab

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

‎openapi.public.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1932,6 +1932,10 @@
19321932
"format": "uuid",
19331933
"type": "string"
19341934
},
1935+
"is_deep_review": {
1936+
"description": "Present and true when this run is a Deep Review.",
1937+
"type": "boolean"
1938+
},
19351939
"kind": {
19361940
"description": "`PULL_REQUEST`, `DEPLOYMENT`, `PATCH`, a review of local changes\n sent as a patch, `COMMIT`, a review of pushed commits, or `FILES`,\n complete selected files at one pushed commit.",
19371941
"type": "string"

‎proofline/_generated/models/customer_review_detail.py‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ class CustomerReviewDetail:
109109
branch moves, the reviewed input does not. Absent for a patch review.
110110
head_ref (None | str | Unset): The pull request's head branch name as last recorded from GitHub, for
111111
orientation only. Null when no pull request state is recorded.
112+
is_deep_review (bool | Unset): Present and true when this run is a Deep Review.
112113
local_reverifications (list[LocalReverification] | Unset): For a patch review requested with
113114
`verify_finding_ids`, each finding
114115
it re-verifies against the patch and the outcome. The outcome is
@@ -206,6 +207,7 @@ class CustomerReviewDetail:
206207
head_commit_sha: None | str | Unset = UNSET
207208
head_commit_url: None | str | Unset = UNSET
208209
head_ref: None | str | Unset = UNSET
210+
is_deep_review: bool | Unset = UNSET
209211
local_reverifications: list[LocalReverification] | Unset = UNSET
210212
merge_gate: None | PullRequestMergeGate | Unset = UNSET
211213
open_items: None | OpenItemsView | Unset = UNSET
@@ -394,6 +396,8 @@ def to_dict(self) -> dict[str, Any]:
394396
else:
395397
head_ref = self.head_ref
396398

399+
is_deep_review = self.is_deep_review
400+
397401
local_reverifications: list[dict[str, Any]] | Unset = UNSET
398402
if not isinstance(self.local_reverifications, Unset):
399403
local_reverifications = []
@@ -632,6 +636,8 @@ def to_dict(self) -> dict[str, Any]:
632636
field_dict["head_commit_url"] = head_commit_url
633637
if head_ref is not UNSET:
634638
field_dict["head_ref"] = head_ref
639+
if is_deep_review is not UNSET:
640+
field_dict["is_deep_review"] = is_deep_review
635641
if local_reverifications is not UNSET:
636642
field_dict["local_reverifications"] = local_reverifications
637643
if merge_gate is not UNSET:
@@ -951,6 +957,8 @@ def _parse_head_ref(data: object) -> None | str | Unset:
951957

952958
head_ref = _parse_head_ref(d.pop("head_ref", UNSET))
953959

960+
is_deep_review = d.pop("is_deep_review", UNSET)
961+
954962
_local_reverifications = d.pop("local_reverifications", UNSET)
955963
local_reverifications: list[LocalReverification] | Unset = UNSET
956964
if _local_reverifications is not UNSET:
@@ -1328,6 +1336,7 @@ def _parse_trigger_source(data: object) -> None | PatchTriggerSource | Unset:
13281336
head_commit_sha=head_commit_sha,
13291337
head_commit_url=head_commit_url,
13301338
head_ref=head_ref,
1339+
is_deep_review=is_deep_review,
13311340
local_reverifications=local_reverifications,
13321341
merge_gate=merge_gate,
13331342
open_items=open_items,

0 commit comments

Comments
 (0)