SDK reference
Issues
Each route's function in the SDK, its call beside the same request in cURL.
orgReposIssues
GET/
Lists issues in one state, newest first. Pass the returned cursor to get the next page.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/issues' \
-H "Authorization: Bearer $CACTIVE_TOKEN"postOrgReposIssues
POST/
Opens an issue. Issues and pull requests share one number sequence per repository.
Parameters and answerscurl -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"
}'orgReposIssuesByNumber
GET/
An issue and its comments.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/issues/{number}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"patchOrgReposIssuesByNumber
PATCH/
Edits the title, body or labels, or closes and reopens the issue.
Parameters and answerscurl -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"
]
}'postOrgReposIssuesComments
POST/
Adds a comment to an issue.
Parameters and answerscurl -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"
}'