Public Access
fix: pr-check platform detection via metadata API, allow fix/patch to main #331
Reference in New Issue
Block a user
Delete Branch "hotfix/pr-check-metadata-platform"
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?
Why
This is the upstream fix for the platform template so the changes made directly in
MokoGitea-Fork#724aren't reverted on the next workflow sync..mokogitea/workflows/pr-check.ymlhere is the source that gets pushed to all org repos.Changes
1. Platform detection no longer reads
.mokogitea/manifest.xml.manifest.xmlis no longer used — platform now comes from the MokoGitea metadata API (GET /api/v1/repos/{owner}/{repo}/metadata→.platform, a public endpoint). The oldPLATFORM=$(sed ... manifest.xml)aborted the Validate PR job underset -eon any repo without the file (e.g. generic Go/TS repos). New step:Joomla/dolibarr detection is preserved (metadata returns
joomla/dolibarr); generic repos fall back togeneric.2. Branch policy allows
fix/*→mainandpatch/*→main.The policy had drifted to
fix/* → devonly, rejecting fix/patch PRs to main despite the documented policy. Now:fix/*→devormainpatch/*→dev,rc, ormainNotes
"platform": "go"for MokoGitea-Fork; YAML parses clean.