SDK reference

Issues

Each route's function in the SDK, its call beside the same request in cURL.
orgReposIssues

GET/v1/orgs/:orgId/repos/:name/issues

Lists issues in one state, newest first. Pass the returned cursor to get the next page.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/issues' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgReposIssues

POST/v1/orgs/:orgId/repos/:name/issues

Opens an issue. Issues and pull requests share one number sequence per repository.

Parameters and answers
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"
  }'
orgReposIssuesByNumber

GET/v1/orgs/:orgId/repos/:name/issues/:number

An issue and its comments.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/issues/{number}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
patchOrgReposIssuesByNumber

PATCH/v1/orgs/:orgId/repos/:name/issues/:number

Edits the title, body or labels, or closes and reopens the issue.

Parameters and answers
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"
    ]
  }'
postOrgReposIssuesComments

POST/v1/orgs/:orgId/repos/:name/issues/:number/comments

Adds a comment to an issue.

Parameters and answers
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"
  }'