Manage Forge projects via REST API
http://localhost:8887/api/projects
url (string, required): GitHub repository URLbranch (string): Branch name (default: “main”)| Field | Type | Description |
|---|---|---|
currentBranch | string | Currently checked out branch |
branches | array | All branches in repository |
branches[].name | string | Branch name |
branches[].commit | string | Latest commit hash |
branches[].isCurrent | boolean | Currently checked out |
branches[].isDefault | boolean | Default branch (main/master) |
branches[].isForgeWorktree | boolean | Created by Forge for task attempt |
branches[].taskId | string | Associated task ID (Forge branches only) |
branches[].attemptId | string | Associated attempt ID (Forge branches only) |
forgeBranches | array | Filtered list of Forge-created branches |
GitHub OAuth token obtained via device flow
List of projects
The response is of type any.