Skip to content

Get a branch's description

GET
/api/orgs/{org}/projects/{project}/description
curl --request GET \
--url 'https://api-dev.wrktr.com/api/orgs/example/projects/example/description?branch=example' \
--header 'Authorization: Bearer <token>'

What the branch does, as the review agent describes it: a title, a summary, the changes by area, risks and how to check it.

org
required
string
project
required
string
branch
required
string

BranchDescription

Media typeapplication/json
object
branch
required
string
headSha
required
string
status
required
string
Allowed values: ready updating none unavailable failed
description
required
Any of:
object
kind
Any of:
string
Allowed values: feat fix refactor perf docs test ci build chore
title
required
string
summary
required
string
changes
required
Array<object>
object
area
required
string
detail
required
string
risks
required
Array<string>
testNotes
required
Array<string>
forSha
required
Any of:
string
model
required
Any of:
string
generatedAt
required
Any of:
Any of:
number
Example
{
"status": "ready",
"description": {
"kind": "feat"
},
"generatedAt": "Infinity"
}

Unauthorized

Media typeapplication/json
object
_tag
required
string
Allowed values: Unauthorized
message
required
string
Example
{
"_tag": "Unauthorized"
}

ProjectNotFound | BranchNotFound

Media typeapplication/json
Any of:
object
_tag
required
string
Allowed values: ProjectNotFound
project
required
string
Example
{
"_tag": "ProjectNotFound"
}