github.repos.get_repo ​
Get metadata for a single GitHub repository
Get metadata for a single GitHub repository.
Inputs:
- owner: Repository owner (user or org) (required).
- repo: Repository name (required).
Outputs (terminal state_data):
- full_name: str — owner/repo
- description: str | None
- private: bool
- default_branch: str
- clone_url: str
- stars: int
- open_issues: int
- url: str — HTML URL
Plugin required: context.get_plugin("github") must expose .token.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-github |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
owner | string | Yes | — | Repository owner (user or org) |
repo | string | Yes | — | Repository name |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
clone_url | string | No | — | — |
default_branch | string | No | — | — |
description | string | No | — | — |
full_name | string | No | — | — |
open_issues | integer | No | — | — |
private | boolean | No | — | — |
stars | integer | No | — | — |
url | string | No | — | — |
owner | string | No | — | — |
repo | string | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "github.repos.get_repo",
"initial_data": {
"owner": "value",
"repo": "value"
}
}