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>"
}
]
}List draft commits for the current user
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>"
}
]
}This API uses OAuth 2 with the implicit grant flow
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.
3 - 128"example_id"
List of draft commits
Show child attributes