Use Forgejo-compatible repository contents API

This commit is contained in:
Georg Bauer
2026-08-03 18:29:10 +02:00
parent d47b21d6a6
commit 7376e6cee3
3 changed files with 59 additions and 15 deletions

View File

@@ -11,9 +11,10 @@ relationships, while
Generated API modules and client configuration are deliberately private so the
CLI and app cannot duplicate Gitea behavior.
Forgejo uses the common generated client for its documented Gitea-compatible
`/api/v1` surface. Provider discovery and provider-specific endpoints, such as
Forgejo's dedicated version API, are routed inside `gotcha_gitea::Client`.
Forgejo uses operations from its advertised Gitea 1.22-compatible `/api/v1`
surface. Gotcha must not assume that newer operations from its generated Gitea
1.25 client exist on Forgejo: provider-specific endpoints and any operation
outside the shared contract are routed inside `gotcha_gitea::Client`.
| Domain | Queries | Other actions | Generated client | CLI queries | CLI writes | Capabilities |
| --- | ---: | ---: | --- | ---: | ---: | --- |