POST
/
integrations
/
data
/
github
/
pull_requests
/
files
curl --request POST \
  --url https://api.carbon.ai/integrations/data/github/pull_requests/files \
  --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
}'
{
  "data": [
    {
      "sha": "<string>",
      "filename": "<string>",
      "status": "added",
      "additions": 123,
      "deletions": 123,
      "changes": 123,
      "blob_url": "<string>",
      "raw_url": "<string>",
      "contents_url": "<string>",
      "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

Response

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