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
Draft commit ID
"dv.draft.12345678-1234-1234-1234-123456789abc"
ID of the hidden draft branch
ID of the source branch (e.g., master)
Name of the source branch
Status of the draft commit
open, closed Unix timestamp when created
Unix timestamp when last updated
Title of the review
Associated review ID if created