GitHub helpers
Thin proxies to GitHub that use the user's encrypted access token. Used by onboarding and issue creation.
What this resource does
These endpoints translate frontend needs (“list my repos”, “list the open issues of this repo”, “what branches does this repo have?”) into calls to the GitHub REST API, signed with the user's OAuth token. The token is decrypted in memory just before the call and never logged.
If the token has expired or been revoked, these endpoints respond with 401 Unauthorized and a body that distinguishes the case from a missing session — the frontend uses this to prompt a GitHub reconnection.
Endpoints
get
/api/github/reposList Github Repos
Responses
200Successful Response[ { "id": "string", "full_name": "string", "owner": "string", "name": "string", "description": "string", "private": false, "default_branch": "string", "size_kb": 0, "language": "string", "updated_at": "string", "already_indexed": false, "has_supported_files": false, "forge_repo_id": "string" } ]422Validation Error
get
/api/github/repos/{owner}/{repo}/issuesList Repo Issues
Path parameters
| Name | Type | Description |
|---|---|---|
ownerRequired | string | — |
repoRequired | string | — |
Responses
200Successful Response[ { "number": 0, "title": "string", "body": "string", "html_url": "string" } ]422Validation Error
get
/api/github/repos/{owner}/{repo}/branchesList Repo Branches
Path parameters
| Name | Type | Description |
|---|---|---|
ownerRequired | string | — |
repoRequired | string | — |
Responses
200Successful Response[ "string" ]
422Validation Error