myst/web
ZTatman 984b382758 fix(forgejo): query commits by sha and normalize Commit payload
Forgejo's commits endpoint filters on `sha`, not `branch`. Sending
`?branch=<name>` was silently ignored and the API returned the default
branch's commits for every ref, so branch resolution appeared to work
while always yielding the same list.

Rename the parameter to `ref` (a branch, tag, or sha) and send it as
`sha`, documenting that the slot name is Forgejo's choice while the value
is a caller-supplied git ref.

The flat commits payload is GitHub-shaped (`sha`, `commit.message`,
`html_url`, `created`) while the nested branch commit uses `id`,
`message`, `url`, and `timestamp`. Give each Commit field an
AliasChoices/AliasPath covering both shapes so one model serves the
/branches and /commits endpoints, then map commits through it instead of
returning raw dicts under a `list[Commit]` annotation.

Also annotate get_branches' limit/page to match get_commits.
2026-10-05 15:45:22 -04:00
..
app fix(forgejo): query commits by sha and normalize Commit payload 2026-10-05 15:45:22 -04:00
.python-version Add FastAPI web service with async SQLAlchemy and Docker (#10) 2026-04-24 16:03:54 -04:00
dev.sh build(web): migrate tailwind build to pnpm-managed CLI 2026-10-01 16:50:31 -04:00
Dockerfile [codex] Update boilerplate UI design system (#12) 2026-05-26 22:50:25 -04:00
package.json build(web): migrate tailwind build to pnpm-managed CLI 2026-10-01 16:50:31 -04:00
pyproject.toml build(deps): bump web and dev dependencies 2026-10-01 16:50:48 -04:00
uv.lock build(deps): bump web and dev dependencies 2026-10-01 16:50:48 -04:00