> ## Documentation Index
> Fetch the complete documentation index at: https://www.ravion.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Stream GitHub repositories (SSE)

> Stream GitHub repositories via SSE in batches of 20



## OpenAPI

````yaml https://api.ravion.com/openapi.yaml get /github/installations/{installationId}/repositories/stream
openapi: 3.0.0
info:
  title: Ravion
  version: 0.0.0
servers:
  - url: https://api.ravion.com
security:
  - BearerAuth: []
tags:
  - name: Projects
  - name: Environments
  - name: Pipelines
  - name: PipelineRuns
  - name: TerraformResources
  - name: TerraformExecutionSummaries
  - name: PipelineStepExecutions
  - name: AwsCloudWatch
  - name: PipelineVersions
  - name: Organizations
  - name: Stacks
  - name: StackWorkspaces
  - name: Auth
  - name: OAuth
  - name: User
  - name: Health
  - name: Memberships
  - name: ServiceAccounts
  - name: AwsDefaultNetworks
  - name: AwsAccounts
  - name: ApiKeys
  - name: ExecutionEnvironments
  - name: ModuleDefinitions
  - name: ModuleVersions
  - name: ModuleInstances
  - name: DefaultValueDefinitions
  - name: DefaultValues
  - name: CodeSources
  - name: Github
  - name: Gitlab
  - name: Git
  - name: Values
  - name: Deployments
  - name: DeploymentResources
  - name: InfrastructureEvents
  - name: WebSocket
  - name: Describe
paths:
  /github/installations/{installationId}/repositories/stream:
    get:
      tags:
        - Github
      summary: Stream GitHub repositories (SSE)
      description: Stream GitHub repositories via SSE in batches of 20
      operationId: StreamGitHubRepositories
      parameters:
        - description: GitHub App installation ID
          in: path
          name: installationId
          required: true
          schema:
            type: string
        - $ref: '#/components/parameters/GitNamespaceTypeParam'
      responses:
        '200':
          content:
            text/event-stream:
              schema:
                $ref: '#/components/schemas/GitRepositoryBatchEvent'
          description: SSE stream of repository batches
components:
  parameters:
    GitNamespaceTypeParam:
      in: query
      name: namespaceType
      schema:
        allOf:
          - $ref: '#/components/schemas/GitNamespaceType'
        nullable: true
  schemas:
    GitRepositoryBatchEvent:
      additionalProperties: false
      description: SSE event containing a batch of repositories
      properties:
        isFinal:
          description: Whether this is the final batch
          type: boolean
        pageInfo:
          allOf:
            - $ref: '#/components/schemas/GitPageInfo'
          description: Pagination info for this batch
        repositories:
          description: Batch of repositories (up to 20)
          items:
            $ref: '#/components/schemas/GitRepository'
          type: array
        totalReceived:
          description: Running total received
          format: int32
          type: integer
      required:
        - repositories
        - pageInfo
        - totalReceived
        - isFinal
      type: object
    GitNamespaceType:
      description: Git namespace type
      enum:
        - USER
        - ORGANIZATION
      type: string
    GitPageInfo:
      additionalProperties: false
      description: Pagination info for external Git API responses
      properties:
        endCursor:
          description: Cursor for next page (page number)
          nullable: true
          type: string
        hasNextPage:
          description: Whether more results exist
          type: boolean
      required:
        - endCursor
        - hasNextPage
      type: object
    GitRepository:
      additionalProperties: false
      description: Repository info returned by all Git providers
      properties:
        collaborators:
          allOf:
            - $ref: '#/components/schemas/GitCollaboratorCount'
          description: Collaborator statistics
        defaultBranch:
          allOf:
            - $ref: '#/components/schemas/GitBranchRef'
          description: Default branch (alias for defaultBranchRef)
        defaultBranchRef:
          allOf:
            - $ref: '#/components/schemas/GitBranchRef'
          description: Default branch reference
        description:
          description: Repository description
          type: string
        foreignId:
          description: Provider-specific repository ID
          type: string
        isInNamespace:
          description: Whether repository belongs to a namespace (vs personal account)
          type: boolean
        isPrivate:
          description: Whether repository is private
          type: boolean
        name:
          description: Repository name, e.g. 'minsk'
          type: string
        nameWithOwner:
          description: Full name including owner, e.g. 'owner/repo'
          type: string
        owner:
          allOf:
            - $ref: '#/components/schemas/GitRepositoryOwner'
          description: Repository owner info
        pushedAt:
          description: Last push timestamp (ISO 8601)
          type: string
        url:
          description: Full URL to the repository
          type: string
      required:
        - foreignId
        - url
        - name
        - nameWithOwner
        - isInNamespace
        - isPrivate
        - description
        - owner
        - defaultBranchRef
        - defaultBranch
        - collaborators
        - pushedAt
      type: object
    GitCollaboratorCount:
      additionalProperties: false
      description: Collaborator statistics
      properties:
        totalCount:
          description: Total number of collaborators
          format: int32
          type: integer
      required:
        - totalCount
      type: object
    GitBranchRef:
      additionalProperties: false
      description: Branch reference
      properties:
        name:
          description: Branch name
          type: string
      required:
        - name
      type: object
    GitRepositoryOwner:
      additionalProperties: false
      description: Repository owner info
      properties:
        login:
          description: Owner's login/username
          type: string
      required:
        - login
      type: object
  securitySchemes:
    BearerAuth:
      scheme: Bearer
      type: http

````