GitHub
Retrieve Changed Files
API Documentation
Health
Files
Web Scrape
Data Source
SharePoint
GitHub
Chunks / Embeddings
Retrieval
GitHub
Retrieve Changed Files
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
token <token>
, corresponds to temporary access tokens.
Body
application/json
Full name of the repository, denoted as {owner}/{repo}
Required range:
x < 100
Response
200
application/json
Successful Response
Available options:
added
, removed
, modified
, renamed
, copied
, changed
, unchanged
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>"
}