# Pipeline — Up Next ## Phase 1: Backend — Forgejo API Integration - [x] Forgejo API client service (`backend/app/services/forgejo_client.py`) - [x] DB models: `ForgejoConnection`, `ForgejoRepository`, `ForgejoIssue` (labels cached on issues) - [x] Alembic migration for new models - [x] API endpoints: `/api/v1/forgejo/repositories`, `/api/v1/forgejo/issues` - [x] Config via Forgejo connection/repository CRUD - [x] On-demand repository sync endpoint: `POST /api/v1/forgejo/repositories/{repository_id}/sync` - [x] Scheduled sync (background task or cron) ## Phase 2: Frontend — Issues Panel - [x] New "Issues" sidebar link and route (`/git-projects/issues`) - [x] Issue list page with repo/state/search filters - [ ] Label/priority filters - [ ] Issue detail page - [ ] "Create Task from Issue" button ## Phase 3: Task Integration - [ ] Link tasks to Forgejo issues (foreign key on task) - [ ] Task detail view shows linked issue info - [x] Dashboard issue count widgets ## Phase 4: Polish - [x] Forgejo webhook for cached issue updates - [x] Issue status sync (open/closed) - [ ] Auto-archive closed issues