Add an autofix CLI for invalid format versions #22
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pokebedrock/pokebedrock-res!22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/format-version-autofix"
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
Adds
npm run fix:formatVersions. It scans the same assets asnpm run validate:formatVersionsand bumps outdatedformat_versionvalues in place.format_versionstring, so the rest of the file stays as it is.npm run validate:formatVersionsshould pass. Files with noformat_version, or a legacygeometry.*root, are skipped and still need a manual edit.Replaces #15. That branch's Forgejo diff was still rooted at the old merge base, so it showed files that are already on
main.Test plan
npm run validate:formatVersionsis green on this branchformat_version, runnpm run fix:formatVersions, accept that category, confirm the string bumped and validate is green again