## GET /v1/integrations/github/repos

List repositories available through the GitHub installation.

Required permissions: read:integrations.
API key: Supported.
CLI user token: Supported.
Session token: Requires the ellipsis:api scope, and the session's permissions.ellipsis rules must allow the operation.
Higher permission levels include lower levels: read < write < delete.

### Response

```text
{
  "backfill_complete": bool,
  "backfill_statuses": [
    {
      "backfill_complete": bool,
      "repository_id": int
    }
  ],
  "repositories": [
    {
      "default_branch": str,
      "description": str,
      "full_name": str,
      "html_url": str,
      "id": int,
      "name": str,
      "owner": {
        "avatar_url": str,
        "id": int,
        "login": str,
        "name": str,
        "type": str
      },
      "private": bool
    }
  ]
}
```

### Python

```python
import os

from ellipsis import Ellipsis

client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])

result = client.integrations.github.repos()
print(result)
```

### TypeScript

```typescript
import { Ellipsis } from '@ellipsis-dev/sdk';

const client = new Ellipsis({
  apiKey: process.env.ELLIPSIS_API_TOKEN!,
});

const result = await client.integrations.github.repos();
console.log(result);
```

### cURL

```bash
curl "https://api.ellipsis.dev/v1/integrations/github/repos" \
  -H "Authorization: Bearer $ELLIPSIS_API_TOKEN"
```

### Response schema

```json
{
  "properties": {
    "backfill_complete": {
      "default": false,
      "type": "boolean"
    },
    "backfill_statuses": {
      "items": {
        "properties": {
          "backfill_complete": {
            "type": "boolean"
          },
          "repository_id": {
            "type": "integer"
          }
        },
        "required": [
          "repository_id",
          "backfill_complete"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "repositories": {
      "items": {
        "properties": {
          "default_branch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "full_name": {
            "type": "string"
          },
          "html_url": {
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "owner": {
            "properties": {
              "avatar_url": {
                "type": "string"
              },
              "id": {
                "type": "integer"
              },
              "login": {
                "type": "string"
              },
              "name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "type": {
                "enum": [
                  "User",
                  "Organization",
                  "Bot",
                  "Mannequin"
                ],
                "type": "string"
              }
            },
            "required": [
              "avatar_url",
              "id",
              "login",
              "name",
              "type"
            ],
            "type": "object"
          },
          "private": {
            "type": "boolean"
          }
        },
        "required": [
          "owner",
          "html_url",
          "id",
          "name",
          "full_name",
          "private"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "repositories"
  ],
  "type": "object"
}
```
