Metadata: make the platform dropdown editable via settings (not hardcoded)
#777
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
The repository Metadata feature renders the
platformfield as a hardcoded dropdown (enum) in the MokoGitea fork. The option list lives in code, so changing it requires editing the fork and redeploying.Motivation
We just consolidated the platform taxonomy —
node+mcpwere merged into a singlenpmtype. Current values are now:joomla,dolibarr,go,npm,genericEvery taxonomy change (add/remove/rename a platform) currently means a code change + rebuild + redeploy of the fork, plus keeping it in sync with
mokocliand theMANIFEST-STANDARDdocs. That is brittle and slow.Request
Make the
platformdropdown options configurable through settings rather than hardcoded:platformvalues, andplatformdropdown reads its options from that setting.Acceptance criteria
platformdropdown is populated from that setting.joomla,dolibarr,go,npm,generic.Notes
package-typefield may warrant the same treatment for consistency.GET/PUT /api/v1/repos/{owner}/{repo}/manifest) accepting the configured values.