Gitea read client behind an injected fetch #1

Closed
opened 2026-07-08 15:15:07 +00:00 by christian · 1 comment
Owner

Typed client in @commitea/core that round-trips one real object: fetch a single issue with its labels, milestone, and assignee, normalized to a GiteaIssue. Network is an injected fetch-shaped fn so it unit-tests with a stub. Token/base-URL from config, not hardcoded.

Acceptance: given canned JSON, returns a typed issue.

Tap-root — P1, P4-3, and all real-data work sink into this. Grab first.

Typed client in `@commitea/core` that round-trips one real object: fetch a single issue with its labels, milestone, and assignee, normalized to a `GiteaIssue`. Network is an injected fetch-shaped fn so it unit-tests with a stub. Token/base-URL from config, not hardcoded. **Acceptance:** given canned JSON, returns a typed issue. **Tap-root** — P1, P4-3, and all real-data work sink into this. Grab first.
christian added this to the P1 — Sync + data model milestone 2026-07-08 15:15:07 +00:00
christian added the
est
2d
p
1
labels 2026-07-08 15:15:07 +00:00
christian added a new dependency 2026-07-08 15:15:41 +00:00
christian added a new dependency 2026-07-08 15:15:41 +00:00
christian added a new dependency 2026-07-08 15:15:42 +00:00
christian added a new dependency 2026-07-08 15:15:45 +00:00
Author
Owner

Done in PR #35 (d6f531e). Gitea read client landed in @commitea/core (injected fetch, normalized GiteaIssue, GiteaApiError), unit-tested + verified against live #9.

Done in PR #35 (d6f531e). Gitea read client landed in @commitea/core (injected fetch, normalized GiteaIssue, GiteaApiError), unit-tested + verified against live #9.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: christian/commitea#1
No description provided.