Skip to main content
GET
/
repos
/
{repo_id}
/
draft-commits
List draft commits
curl --request GET \
  --url https://api.diversion.dev/v0/repos/{repo_id}/draft-commits \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "id": "dv.draft.12345678-1234-1234-1234-123456789abc",
      "draft_branch_id": "<string>",
      "source_branch_id": "<string>",
      "source_branch_name": "<string>",
      "status": "open",
      "created_timestamp": 123,
      "updated_timestamp": 123,
      "title": "<string>",
      "review_id": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

This API uses OAuth 2 with the implicit grant flow

Path Parameters

repo_id
string
required

The repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.

Required string length: 3 - 128
Example:

"example_id"

Response

List of draft commits

items
object[]