feat(cli): wire moko-platform CLI to MokoGitea manifest API #505
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
Update the moko-platform CLI to read/write manifest settings via the MokoGitea API instead of the .mokogitea/manifest.xml file. The manifest API is now available at:
GET /api/v1/repos/{owner}/{repo}/manifestPUT /api/v1/repos/{owner}/{repo}/manifestRequired Changes
1. CLI Commands
moko manifest get— read manifest from APImoko manifest set <field> <value>— update a single field via APImoko manifest migrate— trigger migration of legacy manifest.xml to APImoko manifest sync— push settings across multiple reposmoko manifest show— display current manifest in table format2. Wire moko-platform main branch permanently to Actions
Actions workflows should have access to moko-platform CLI commands. This means:
GITEA_TOKENenvironment variable3. Backward Compatibility
moko manifest migrateshould work even without API (just validate the XML)Motivation
Actions workflows and CI/CD pipelines need to read/write manifest settings programmatically for version bumping, build matrix decisions, and cross-repo syncing.
Authored by Jonathan Miller (@jmiller)