GitHub
Retrieve Commits
API Documentation
Health
Files
Web Scrape
Data Source
SharePoint
GitHub
Chunks / Embeddings
Retrieval
GitHub
Retrieve Commits
POST
/
integrations
/
data
/
github
/
pull_requests
/
commits
curl --request POST \
--url https://api.carbon.ai/integrations/data/github/pull_requests/commits \
--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": [
{
"commit": {
"author": {
"name": "<string>",
"email": "<string>"
},
"committer": {
"name": "<string>",
"email": "<string>"
},
"message": "<string>",
"tree": {
"sha": "<string>",
"url": "<string>"
},
"url": "<string>",
"comment_count": 123
},
"url": "<string>",
"author": {
"id": 123,
"login": "<string>"
},
"committer": {
"id": 123,
"login": "<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
curl --request POST \
--url https://api.carbon.ai/integrations/data/github/pull_requests/commits \
--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": [
{
"commit": {
"author": {
"name": "<string>",
"email": "<string>"
},
"committer": {
"name": "<string>",
"email": "<string>"
},
"message": "<string>",
"tree": {
"sha": "<string>",
"url": "<string>"
},
"url": "<string>",
"comment_count": 123
},
"url": "<string>",
"author": {
"id": 123,
"login": "<string>"
},
"committer": {
"id": 123,
"login": "<string>"
},
"remote_data": {}
}
],
"next_cursor": "<string>"
}