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

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