Review a changeset
POST /Platform/entities/changesets/{changeset_id}/review
Review a changeset. The verdict is approve, request_changes
or comment.
One endpoint covers the whole review conversation:
request_changesblocks the merge and the comment is what the agent reads to continue working (fix branch, attach fresh test runs,changeset-refresh).approverecords the approver and unlockschangeset-merge. Into a protectedmainthe approver must holdapprove_changesets(or bypass); the opener may approve their own changeset. A refresh clears approval, so the same rule applies again after it.commentjust appends to the timeline (also how the agent posts additional test evidence mid-review).
Path parameters
changeset_id: str. The changeset under review.
Body parameters
verdict: "approve" or "request_changes" or "comment".approve,request_changes, orcomment.comment: optional str. Free-text feedback recorded on the timeline.test_evidence: optional List[Any]. Test-run references to attach alongside the verdict (same shape aschangeset-open).
Returns
ChangesetResponse
changeset: dict. changeset_id, from_branch, to_branch, status, description, author, origin_ref, approver, resolutions, plan, code_ranges (one per repository: repo_id, repo_name, base_sha, head_sha, to_sha, merged_sha), created_at, merged_at, members (entity members and, as RepoFile members, the files each code range changes), events, test_evidence.auto_approve_ignored: optional str or null. Why auto_approve was ignored (main is protected and the caller holds no bypass).
Example request
curl -X POST "https://api.hilus.ai/Platform/entities/changesets/{changeset_id}/review" \
-H "Authorization: Bearer $HILUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'