Get GitHub Repository Context
get_github_contextRetrieves current GitHub repository context—branch, open issues, and pull requests—auto-detecting from git or using a specified owner/repo for multi-project workflows.
Instructions
Get current repository context including branch, open issues, and open PRs. IMPORTANT: Leave owner/repo empty to auto-detect from git, OR specify the repository name if working in a multi-project registry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Repository name (use this to switch projects dynamically) | |
| owner | No | Repository owner | |
| use_test_db | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Error code (e.g. VALIDATION_ERROR, INTERNAL_ERROR) | |
| error | No | Human-readable error message | |
| branch | No | ||
| commit | No | ||
| issues | No | ||
| details | No | Additional error context | |
| prCount | No | ||
| category | No | Error category (validation, query, connection, internal) | |
| repoName | No | ||
| remoteUrl | No | ||
| issueCount | No | ||
| suggestion | No | Suggested fix for the error | |
| recoverable | No | Whether the error is recoverable | |
| pullRequests | No | ||
| aggregated_errors | No | Details of individual errors in a multi-step operation |