List a branch's comments
GET
/api/orgs/{org}/projects/{project}/comments
const url = 'https://api-dev.wrktr.com/api/orgs/example/projects/example/comments?branch=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api-dev.wrktr.com/api/orgs/example/projects/example/comments?branch=example' \ --header 'Authorization: Bearer <token>'Its review threads and replies, re-anchored to the branch head.
Authorizations
Section titled “Authorizations”- bearer
- None
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
project
required
string
Query Parameters
Section titled “Query Parameters”branch
required
string
Responses
Section titled “Responses”BranchComments
Media typeapplication/json
object
branch
required
string
headSha
required
string
comments
required
Array<object>
object
id
required
string
branch
required
string
path
required
string
anchorSha
required
string
lineText
required
string
body
required
string
author
required
string
authorKind
required
string
status
required
string
Example
{ "comments": [ { "line": "Infinity", "authorKind": "human", "status": "open", "createdAt": "Infinity", "updatedAt": "Infinity", "severity": "blocker" } ]}Unauthorized
Media typeapplication/json
object
_tag
required
string
message
required
string
Example
{ "_tag": "Unauthorized"}ProjectNotFound | BranchNotFound