github.repos.list_repos ​
List GitHub repositories for a user or organisation
List GitHub repositories for a user or organisation.
Inputs:
- owner: GitHub username or organisation name (required).
- is_org: True if owner is an organisation (optional, default: false).
- repo_type: all | public | private | forks | sources | member (optional, default: all).
- per_page: Results per page, 1–100 (optional, default: 30).
Outputs (terminal state_data):
- repos: list of
- total: int — number of repos returned (first page only)
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 | — | GitHub username or organisation name |
is_org | boolean | No | — | True if owner is an organisation (default: false) |
repo_type | string | No | — | all |
per_page | integer | No | — | Results per page 1–100 (default: 30) |
organization_uuid | uuid | No | — | Optional organization context |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
owner | string | No | — | — |
is_org | boolean | No | — | — |
repo_type | string | No | — | — |
per_page | integer | No | — | — |
organization_uuid | uuid | No | — | — |
repos | list | No | — | — |
total | integer | 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.list_repos",
"initial_data": {
"owner": "value"
}
}