Skip to content

Implement worktree routes #71

@2witstudios

Description

@2witstudios

Epic 3: REST API Routes — Issue 4/5

Source: 1-agent worktree — most complete with PR creation

Description

Worktree action endpoints for merge, kill, and PR creation.

Acceptance Criteria

  • POST /api/worktrees/:id/merge — calls core/operations/merge (squash/no-ff, force flag, cleanup)
  • POST /api/worktrees/:id/kill — kill all agents in worktree
  • POST /api/worktrees/:id/pr — create GitHub PR via gh CLI, store URL in manifest
  • Merge strategy configurable (squash default, no-ff option)
  • Tests with mocked core functions

Dependencies

Files to Create/Modify

  • src/server/routes/worktrees.ts (new)
  • src/server/routes/worktrees.test.ts (new)

Metadata

Metadata

Assignees

No one assigned

    Labels

    epic:rest-apiEpic 3: REST API RoutesmobilePPG Mobile project

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions