Task Breakdown: Git Operations
Feature ID: git-operations
Status: Done (Retrospective; ongoing as new providers ship)
Last updated: 2026-05-01
Phase 1 — SDK contract
- T1.
IGitProviderPlugininterface in@ever-works/plugin/git-provider. - T2. Capability registration (
git-provider).
Phase 2 — Facade
- T3.
GitFacadeServicewith all method groups (repo / local / PR / branch / URL). - T4. Error hierarchy:
GitFacadeError,NoGitProviderError,GitProviderNotFoundError,NoGitCredentialsError. - T5. Credential resolution cascade (explicit token → OAuth → error).
- T6.
cloneOrPullwith local cache. - T7.
pushwithmaxRetries.
Phase 3 — GitHub plugin
- T8.
packages/plugins/github/scaffold with metadata. - T9.
IGitProviderPluginimplementation using Octokit + isomorphic-git. - T10. OAuth flow integration.
- T11. PR-related methods (list, files, comment, close).
Phase 4 — Wiring
- T12.
DataGeneratorServiceuses the facade. - T13.
MarkdownGeneratorServiceuses the facade. - T14.
WebsiteGeneratorServiceuses the facade. - T15.
CommunityPrProcessorServiceuses the facade. - T16.
WorksConfigServiceuses the facade.
Phase 5 — Tests
- T17. Unit tests on the facade with a mock provider.
- T18. Integration tests against a real GitHub repo in CI.
- T19. Error-hierarchy fire paths.
Phase 6 — Docs
- T20. User-facing doc
docs/features/git-operations.md. - T21. GitHub plugin doc
docs/plugin-system/github-plugin.md. - T22. Retrospective spec/plan/tasks.
Future work (open)
- GitLab provider plugin.
- Bitbucket provider plugin.
Definition of Done
- All shipped tasks complete, tests pass, docs present, constitution gates verified.