Model ~/.metanorma/config.yml with LutaML#366
Conversation
|
This actually is not as straightforward as initially thought. Currently, the config metanorma-cli/lib/metanorma/cli/site_generator.rb Lines 91 to 97 in 77bbccd Not sure how best to handle mutations to a LutaML model for now... |
|
This thing is not supposed to be manipulated after. The merges are just used to set defaults or additional things, they can be easily changed to method setters. Now being a lutaml-model we can set those things earlier on and can also allow the user to set them in the config, which is a great feature. |
|
@ribose-jeffreylau @ronaldtse This PR has been unactioned for six months. Is it still to be fixed? |
|
@ribose-jeffreylau @ronaldtse Update on this please. Metanorma is being plagued by PRs sitting unactioned for months. |
|
@ronaldtse @ribose-jeffreylau This has now been sitting unactioned for a full year. If I do not hear back from either of you in the next week, I will be closing this PR. |
…i#366) Completes ci#365 by fixing the tag-creation gap #438 left open. Previous shape (#438): docker-dispatch job fired `gh workflow run build-push.yml` + build-push-windows.yml on metanorma-docker main. build-push builds off main, which reads docker's own latest tag — rebuilding the LAST cli version, not the newly-released one. Every fortnight required manual `gh workflow run release-tag.yml` to create the matching docker tag; automation did not close that loop. This PR: docker-dispatch now fires `repository_dispatch: [metanorma/metanorma-cli]` at metanorma-docker's release-tag.yml (which already exposed that listener but nothing dispatched to it). release-tag.yml parses the cli version from client_payload.ref, updates VERSION.mak + Gemfile, creates the matching vX.Y.Z tag, and the tag push triggers build-push + build-push-windows AT the tag with the correct version. After merge: next cli tag push → rake tests → tests-passed → release-tag creates docker tag → docker images build at correct version. Zero manual intervention across the cli → docker chain. Closes #366 on metanorma/ci.
Metanorma PR checklist
Fixes #365