Draft a description for a changeset
POST /Platform/entities/changesets/draft-description
Draft a description for a changeset.
Reads the diff that opening a changeset from from_branch would
freeze (every changed item, then their diffs up to a size cap) and
asks a small model for the shortest plain description of what the
change does and why: one to three sentences. Nothing is written; pass
the text, edited or not, as description to changeset_open.
Each call is one LLM request.
Body parameters
from_branch: str. Branch to promote FROM (the feature branch).to_branch: optional str. Branch to promote INTO (defaultmain).
Returns
ChangesetDescriptionDraft
description: str. One to three plain sentences on what the change does and why.truncated: optional bool. The diffs were longer than the drafter reads; every changed item was still listed.
Example request
curl -X POST "https://api.hilus.ai/Platform/entities/changesets/draft-description" \
-H "Authorization: Bearer $HILUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'