GitHub
List Pull Requests
API Documentation
Health
Files
Web Scrape
Data Source
SharePoint
GitHub
Chunks / Embeddings
Retrieval
GitHub
List Pull Requests
POST
/
integrations
/
data
/
github
/
pull_requests
curl --request POST \
--url https://api.carbon.ai/integrations/data/github/pull_requests \
--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>",
"filters": {
"state": "open"
},
"order_by": "created",
"order_dir": "asc"
}'
{
"data": [
{
"id": 123,
"url": "<string>",
"number": 123,
"state": "closed",
"title": "<string>",
"user": {
"id": 123,
"login": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>",
"closed_at": "<string>",
"merged_at": "<string>",
"requested_reviewers": [
{
"id": 123,
"login": "<string>"
}
],
"requested_teams": [
{
"id": 123,
"name": "<string>"
}
],
"labels": [
{
"id": 123,
"name": "<string>"
}
],
"draft": true,
"head": {
"label": "<string>",
"ref": "<string>",
"sha": "<string>"
},
"base": {
"label": "<string>",
"ref": "<string>",
"sha": "<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
Available options:
created
, updated
, popularity
Available options:
asc
, desc
Response
200
application/json
Successful Response
Available options:
closed
, open
curl --request POST \
--url https://api.carbon.ai/integrations/data/github/pull_requests \
--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>",
"filters": {
"state": "open"
},
"order_by": "created",
"order_dir": "asc"
}'
{
"data": [
{
"id": 123,
"url": "<string>",
"number": 123,
"state": "closed",
"title": "<string>",
"user": {
"id": 123,
"login": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>",
"closed_at": "<string>",
"merged_at": "<string>",
"requested_reviewers": [
{
"id": 123,
"login": "<string>"
}
],
"requested_teams": [
{
"id": 123,
"name": "<string>"
}
],
"labels": [
{
"id": 123,
"name": "<string>"
}
],
"draft": true,
"head": {
"label": "<string>",
"ref": "<string>",
"sha": "<string>"
},
"base": {
"label": "<string>",
"ref": "<string>",
"sha": "<string>"
},
"remote_data": {}
}
],
"next_cursor": "<string>"
}