POST
/
integrations
/
data
/
github
/
pull_requests
/
comments
curl --request POST \
  --url https://api.carbon.ai/integrations/data/github/pull_requests/comments \
  --header 'Content-Type: application/json' \
  --header 'authorization: <api-key>' \
  --data '{
  "data_source_id": 123,
  "include_remote_data": false,
  "repository": "<string>",
  "page": 1,
  "page_size": 30,
  "next_cursor": "<string>",
  "pull_number": 123,
  "order_by": "created",
  "order_dir": "asc"
}'
{
  "data": [
    {
      "id": 123,
      "pull_request_review_id": 123,
      "url": "<string>",
      "diff_hunk": "<string>",
      "path": "<string>",
      "user": {
        "id": 123,
        "login": "<string>"
      },
      "body": "<string>",
      "created_at": "<string>",
      "updated_at": "<string>",
      "start_line": 123,
      "line": 123,
      "remote_data": {}
    }
  ],
  "next_cursor": "<string>"
}

Authorizations

authorization
string
header
required

token <token>, corresponds to temporary access tokens.

Body

application/json
data_source_id
integer
required
repository
string
required

Full name of the repository, denoted as {owner}/{repo}

pull_number
integer
required
include_remote_data
boolean
default:
false
page
integer
default:
1
page_size
integer
default:
30
Required range: x < 100
next_cursor
string | null
order_by
enum<string>
Available options:
created,
updated
order_dir
enum<string> | null
default:
asc
Available options:
asc,
desc

Response

200
application/json
Successful Response
data
object[]
required
next_cursor
string | null
required