feat: Native badge engine for repository and service status #103
Reference in New Issue
Block a user
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?
Summary
Build a self-hosted badge generation engine as a native MokoGitea feature, eliminating dependency on external services like shields.io.
Priority
Medium
Proposed Design
Native API endpoint at
/api/v1/repos/{owner}/{repo}/badge/{type}.svgthat generates SVG badges on-the-fly from internal data sources.Badge Types
Repository Badges
Infrastructure Badges
probe_success)avg_over_time(probe_success[30d]))joomla_core_versionmetric)probe_ssl_earliest_cert_expiry)Custom Badges
Architecture
Data Sources
Benefits Over shields.io
Suggested Labels
badgesapideveloper-experienceAuthored-by: Moko Consulting
Verified on v1.26.1-moko.3
Proof
Endpoint
Returns valid SVG with proper Content-Type header.
Authored-by: Claude Opus 4.6 (1M context)