cli: release_body_update.php - update release description with changelog + SHA #62

Closed
opened 2026-05-23 22:57:54 +00:00 by jmiller · 1 comment
Owner

Summary

Extract release body assembly from auto-release.yml (lines 826-890) into a CLI tool.

What it does

  • Extracts version-specific section from CHANGELOG.md
  • Builds formatted release body with changelog and checksums table
  • Patches release via Gitea API

CLI interface

php cli/release_body_update.php --path . --version "$VERSION" --release-tag "$TAG" --token "$TOKEN" --changelog-file CHANGELOG.md

Priority

High complexity, medium reuse.

## Summary Extract release body assembly from auto-release.yml (lines 826-890) into a CLI tool. ## What it does - Extracts version-specific section from CHANGELOG.md - Builds formatted release body with changelog and checksums table - Patches release via Gitea API ## CLI interface ```bash php cli/release_body_update.php --path . --version "$VERSION" --release-tag "$TAG" --token "$TOKEN" --changelog-file CHANGELOG.md ``` ## Priority High complexity, medium reuse.
Author
Owner

Completed

Implemented in cli/release_body_update.php on branch feature/cli-release-tools.

Features:

  • Extracts version-specific changelog section from CHANGELOG.md
  • Builds formatted release body with changelog + checksums table
  • GETs release ID by tag from Gitea API
  • PATCHes release body via Gitea API
  • Supports --output-summary for CI integration

CLI interface:

php cli/release_body_update.php --version VER --release-tag TAG --token TOKEN --api-base URL --zip-name PKG.zip --zip-sha SHA256
## Completed Implemented in `cli/release_body_update.php` on branch [`feature/cli-release-tools`](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/src/branch/feature/cli-release-tools/cli/release_body_update.php). ### Features: - Extracts version-specific changelog section from CHANGELOG.md - Builds formatted release body with changelog + checksums table - GETs release ID by tag from Gitea API - PATCHes release body via Gitea API - Supports `--output-summary` for CI integration ### CLI interface: ```bash php cli/release_body_update.php --version VER --release-tag TAG --token TOKEN --api-base URL --zip-name PKG.zip --zip-sha SHA256 ```
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/moko-platform#62