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

# Your projects whose repo is on GitHub

> Every project of the orgs you're in that has had a GitHub repo connected, with where that repo stands, disconnected and gone from GitHub included. The newest connection first.



## OpenAPI

````yaml /api-reference/openapi.json get /me/github/projects
openapi: 3.1.0
info:
  title: Patch API
  version: 1.0.0
  description: >-
    The public API behind patch.gg, the desktop app and pch. Changes within v1
    are additive only. Errors are { error: { code, message, details } }; branch
    on code.
servers:
  - url: https://patch.gg/api/v1
security: []
paths:
  /me/github/projects:
    get:
      tags:
        - GitHub
      summary: Your projects whose repo is on GitHub
      description: >-
        Every project of the orgs you're in that has had a GitHub repo
        connected, with where that repo stands, disconnected and gone from
        GitHub included. The newest connection first.
      responses:
        '200':
          description: Your projects on GitHub
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GithubProjectList'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Not signed in
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Not allowed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearer: []
components:
  schemas:
    GithubProjectList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/GithubProject'
      required:
        - data
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: version_exists
            message:
              type: string
            details: {}
          required:
            - code
            - message
      required:
        - error
    GithubProject:
      type: object
      properties:
        id:
          type: string
          format: uuid
        owner:
          type: string
          example: sam
        slug:
          type: string
          example: sky-mod
        github:
          $ref: '#/components/schemas/GithubRepo'
      required:
        - id
        - owner
        - slug
        - github
    GithubRepo:
      type: object
      properties:
        repo_id:
          type: integer
          description: GitHub's id for it, which renames keep
        full_name:
          type: string
          example: sam/sky-mod
        html_url:
          type: string
          format: uri
          example: https://github.com/sam/sky-mod
        default_branch:
          type: string
          example: main
        private:
          type: boolean
          description: Whether it's private on GitHub
        head_commit:
          type:
            - string
            - 'null'
          description: The default branch's latest commit, as of GitHub's last push event
        pushed_at:
          type:
            - string
            - 'null'
          format: date-time
        state:
          type: string
          enum:
            - connected
            - disconnected
            - gone
            - suspended
            - no_access
          description: >-
            connected. disconnected: someone disconnected it on Patch, or it
            moved to an account without Patch's GitHub App. gone: deleted from
            GitHub. suspended: the app is suspended on its account. no_access:
            the app no longer reaches it (uninstalled, or the repo was taken out
            of the installation).
      required:
        - repo_id
        - full_name
        - html_url
        - default_branch
        - private
        - head_commit
        - pushed_at
        - state
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: An API key (pch_...) or the token from pch login.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.