Apps

Open or merge the app's setup PR

Opens the setup PR from the app's cursor/setup-<slug> branch into the default branch, or updates the open one, through Khotan's GitHub app. The setup script calls it when gh cannot. With merge: true, Khotan merges with a merge commit only when the caller is the running setup run's own key, the PR changes only the app, its database package, bun.lock, khotan.bindings.json, and skills-lock.json, and every check on the head commit passed. A refused merge returns 409 with the guard's code and leaves the PR open.

post/api/v1/apps/{appId}/setup/pull-request

Request

  • Base URL
    https://app.khotan.com
  • URL
    https://app.khotan.com/api/v1/apps/{appId}/setup/pull-request
  • Auth
    • HTTP bearer
    • or API key in header x-api-key

Path parameters

appIdstring required

Request body

titlestring required
bodystring required
mergeboolean

Merge the PR when every guard holds. Only the running setup run's own key can merge.

Response

The setup PR, and whether it merged.

urlstring required
numberinteger required
mergedboolean required
mergeCommitShastring nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.