feat(compat): detect forge flavor (Gitea vs Forgejo/Codeberg) — endpoints and capabilities diverge #48
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sixfold-space/madtea#48
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
madtea treats every forge as "API v1, Gitea-compatible", but the flavors have genuinely diverged and madtea currently finds out via raw 404s and silent behavior differences.
Live evidence (2026-07-13, against codeberg.org):
madt_files action=get_ext→API error 404: 404 page not found— the extended-contents endpoint appears Gitea-only; plainaction=getworks.action=contents(bulk read) is already documented Gitea-only in the tool description.labels=filter resolves org-label names; Gitea silently discards them (fail-open).Ask:
/api/v1/version, plus the Forgejo-specific response headers where present), cached next to the host-keyed credentials so it's resolved once per forge, not per call.TestComparisonCoverageSummary-style guard if practical).Acceptance:
404 page not found.