---
title: "List draft commits"
method: GET
path: "/repos/{repo_id}/draft-commits"
tags: ["Repository Draft Commits"]
---

# List draft commits

`GET /repos/{repo_id}/draft-commits`

List draft commits for the current user

## Response `200`

List of draft commits

- ListDraftCommitsResponse
  - `items` DraftCommit[]
    - `id` string, required — Draft commit ID
    - `draft_branch_id` string, required — ID of the hidden draft branch
    - `source_branch_id` string, required — ID of the source branch (e.g., master)
    - `source_branch_name` string, required — Name of the source branch
    - `title` string — Title of the review
    - `review_id` string, nullable — Associated review ID if created
    - `status` 'open' | 'closed', required — Status of the draft commit
    - `created_timestamp` integer, required — Unix timestamp when created
    - `updated_timestamp` integer, required — Unix timestamp when last updated

## Other responses

- `default` — An error occurred

---

[API](https://skmtc.net/diversion/apis/diversion-core-api.md) · [All operations](https://skmtc.net/diversion/apis/diversion-core-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/diversion/diversion-core-api/revisions/38a18aba804b/schema)
