refactor: extract manifest element/type detection to manifest_element.php #157

Closed
opened 2026-05-26 17:51:32 +00:00 by jmiller · 1 comment
Owner

Problem

Element name, extension type, type prefix, and folder detection is duplicated inline in auto-release.yml (Steps 7b and 8) and pre-release.yml. The same case statement appears 3 times.

Solution

New CLI tool manifest_element.php with --github-output flag. Outputs ext_element, ext_type, type_prefix, ext_folder, ext_name, zip_name.

Files

  • cli/manifest_element.php (new)
  • bin/moko (register)
  • Both workflows (use it)
## Problem Element name, extension type, type prefix, and folder detection is duplicated inline in auto-release.yml (Steps 7b and 8) and pre-release.yml. The same case statement appears 3 times. ## Solution New CLI tool manifest_element.php with --github-output flag. Outputs ext_element, ext_type, type_prefix, ext_folder, ext_name, zip_name. ## Files - cli/manifest_element.php (new) - bin/moko (register) - Both workflows (use it)
jmiller added the phpci-cdbuild labels 2026-05-26 17:51:32 +00:00
Author
Owner

Branch created: feature/157-refactor-extract-manifest-element-type-d

git fetch origin
git checkout feature/157-refactor-extract-manifest-element-type-d
Branch created: [`feature/157-refactor-extract-manifest-element-type-d`](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/src/branch/feature/157-refactor-extract-manifest-element-type-d) ```bash git fetch origin git checkout feature/157-refactor-extract-manifest-element-type-d ```
Sign in to join this conversation.
No labels build ci-cd php
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/moko-platform#157