Abandon a changeset
POST /Platform/entities/changesets/{changeset_id}/abandon
Abandon a changeset. Closes an un-merged changeset without merging; this is terminal.
Path parameters
changeset_id: str. The changeset to abandon.
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}/abandon" \
-H "Authorization: Bearer $HILUS_API_KEY"