API reference
Issues
/ v1/ orgs/ :orgId/ repos/ :name/ issuesLists issues in one state, newest first. Pass the returned cursor to get the next page.
- Auth
- A person's token or an API key, as Authorization: Bearer.
- Scope
- git:read
Path parameters
orgIdOrganization id (
org_…).nameRepository name.
Query parameters
state"open" | "closed"Default
"open".cursorstringlabelstringUp to 50 characters.
authorstringUp to 64 characters.
assigneestringUp to 64 characters.
Errors
404Repository not found
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/issues' \
-H "Authorization: Bearer $CACTIVE_TOKEN"Response 200
{
issues: {
number: number
createdAt?: number
updatedAt?: number
orgId: string
title: string
labels?: string[]
repoId: string
state?: "open" | "closed"
body?: string
assignees?: string[]
comments?: number
closedAt?: number
closedBy?: string
closedByPull?: number
authorId: string
authorEmail?: string
authorName?: string
}[]
cursor: null | string
}/ v1/ orgs/ :orgId/ repos/ :name/ issuesOpens an issue. Issues and pull requests share one number sequence per repository.
- Auth
- A person's token or an API key, as Authorization: Bearer.
- Scope
- git:read
Path parameters
orgIdOrganization id (
org_…).nameRepository name.
Request body
titlestringrequired1–256 characters. Trimmed.
bodystringDefault
"". Up to 65,536 characters.labelsstring[]Default
[]. Up to 10 items. Each 1–50 characters, trimmed.assigneesstring[]Default
[]. Up to 10 items. Each 1–64 characters.
Errors
400Assignees must be members of this organization.404Repository not found404Issue not found409Could not create the issue. Try again.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/issues' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"title": "Example"
}'Response 201
{
issue: {
number: number
createdAt?: number
updatedAt?: number
orgId: string
title: string
labels?: string[]
repoId: string
state?: "open" | "closed"
body?: string
assignees?: string[]
comments?: number
closedAt?: number
closedBy?: string
closedByPull?: number
authorId: string
authorEmail?: string
authorName?: string
}
}/ v1/ orgs/ :orgId/ repos/ :name/ issues/ :numberAn issue and its comments.
- Auth
- A person's token or an API key, as Authorization: Bearer.
- Scope
- git:read
Path parameters
orgIdOrganization id (
org_…).nameRepository name.
numberIssue or pull request number, or under
pipelinesa run number.
Errors
404Repository not found404Not found404Issue not found
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/issues/{number}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"Response 200
{
issue: {
number: number
createdAt?: number
updatedAt?: number
orgId: string
title: string
labels?: string[]
repoId: string
state?: "open" | "closed"
body?: string
assignees?: string[]
comments?: number
closedAt?: number
closedBy?: string
closedByPull?: number
authorId: string
authorEmail?: string
authorName?: string
}
comments: {
number: number
createdAt?: number
updatedAt?: number
orgId: string
repoId: string
body: string
authorId: string
authorEmail?: string
authorName?: string
commentId: string
}[]
}/ v1/ orgs/ :orgId/ repos/ :name/ issues/ :numberEdits the title, body or labels, or closes and reopens the issue.
- Auth
- A person's token or an API key, as Authorization: Bearer.
- Scope
- git:read
- Allowed
- Author, or
git:write
Path parameters
orgIdOrganization id (
org_…).nameRepository name.
numberIssue or pull request number, or under
pipelinesa run number.
Request body
titlestring1–256 characters. Trimmed.
bodystringUp to 65,536 characters.
labelsstring[]Up to 10 items. Each 1–50 characters, trimmed.
assigneesstring[]Up to 10 items. Each 1–64 characters.
state"open" | "closed"
Errors
400Assignees must be members of this organization.403Only the author or members with git:write can change this issue.404Repository not found404Not found404Issue not found409The issue changed. Reload and try again.
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/issues/{number}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"title": "Example",
"body": "example",
"labels": [
"example"
]
}'Response 200
{
issue: {
number: number
createdAt?: number
updatedAt?: number
orgId: string
title: string
labels?: string[]
repoId: string
state?: "open" | "closed"
body?: string
assignees?: string[]
comments?: number
closedAt?: number
closedBy?: string
closedByPull?: number
authorId: string
authorEmail?: string
authorName?: string
}
}/ v1/ orgs/ :orgId/ repos/ :name/ issues/ :number/ commentsAdds a comment to an issue.
- Auth
- A person's token or an API key, as Authorization: Bearer.
- Scope
- git:read
Path parameters
orgIdOrganization id (
org_…).nameRepository name.
numberIssue or pull request number, or under
pipelinesa run number.
Request body
bodystringrequired1–65,536 characters. Trimmed.
Errors
404Repository not found404Not found404Issue not found409Could not add the comment. Try again.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/issues/{number}/comments' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"body": "example"
}'Response 201
{
comment: {
authorId: string
authorEmail: string
authorName?: string
repoId: string
orgId: string
number: number
commentId: string
body: string
} | {
authorId: string
authorEmail?: undefined
authorName?: undefined
repoId: string
orgId: string
number: number
commentId: string
body: string
}
}