refactor: extract Gitea release creation to release_create.php #158

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

Problem

auto-release.yml Step 7b has 65 lines of inline bash for release creation: element detection (duplicated), release name building, delete+create via curl+python3.

Solution

New CLI tool release_create.php that handles element detection, release naming, and Gitea API create/overwrite.

Files

  • cli/release_create.php (new)
  • bin/moko (register)
  • auto-release.yml (replace Step 7b)
## Problem auto-release.yml Step 7b has 65 lines of inline bash for release creation: element detection (duplicated), release name building, delete+create via curl+python3. ## Solution New CLI tool release_create.php that handles element detection, release naming, and Gitea API create/overwrite. ## Files - cli/release_create.php (new) - bin/moko (register) - auto-release.yml (replace Step 7b)
jmiller added the phpci-cdbuild labels 2026-05-26 17:51:32 +00:00
Author
Owner

Branch created: feature/158-refactor-extract-gitea-release-creation-

git fetch origin
git checkout feature/158-refactor-extract-gitea-release-creation-
Branch created: [`feature/158-refactor-extract-gitea-release-creation-`](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/src/branch/feature/158-refactor-extract-gitea-release-creation-) ```bash git fetch origin git checkout feature/158-refactor-extract-gitea-release-creation- ```
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#158