feat(cli): use release_notes.php in client-release workflow Step 3 #78

Closed
opened 2026-05-24 08:26:53 +00:00 by jmiller · 1 comment
Owner

Summary

Replace inline sed changelog extraction in client-release.yml Step 3 with release_notes.php.

Current (~5 lines)

NOTES="Release ${VERSION}"
if [ -f "CHANGELOG.md" ]; then
  SECTION=$(sed -n "/## \[${VERSION}\]/,/## \[/p" CHANGELOG.md | head -n -1)
  [ -n "$SECTION" ] && NOTES="$SECTION"
fi

Proposed

php /tmp/moko-platform/cli/release_notes.php --path . --version "$VERSION" > /tmp/release_notes.txt

Impact

~5 lines to 1 line.

Affected workflows

  • client-release.yml (Template-Client-WaaS, client-waas-clarksvillefurs)
## Summary Replace inline `sed` changelog extraction in `client-release.yml` Step 3 with `release_notes.php`. ## Current (~5 lines) ```bash NOTES="Release ${VERSION}" if [ -f "CHANGELOG.md" ]; then SECTION=$(sed -n "/## \[${VERSION}\]/,/## \[/p" CHANGELOG.md | head -n -1) [ -n "$SECTION" ] && NOTES="$SECTION" fi ``` ## Proposed ```bash php /tmp/moko-platform/cli/release_notes.php --path . --version "$VERSION" > /tmp/release_notes.txt ``` ## Impact ~5 lines to 1 line. ## Affected workflows - `client-release.yml` (Template-Client-WaaS, client-waas-clarksvillefurs)
Author
Owner

Test Proof

Run: #10326
Result: All 10 steps passed
Runner: mokogitea-runner-02 with custom moko/runner-images:ubuntu-latest image

Steps

[success] Clean workspace
[success] Checkout
[success] Install dependencies
[success] Setup moko-platform
[success] Read version
[success] Build ZIP          <-- joomla_build.php
[success] Stream releases
[success] Update updates.xml  <-- updates_xml_sync.php
[success] Bump dev version
[success] Summary

Implemented in client-waas-clarksvillefurs and Template-Client-WaaS.

Change

Replaced ~5 lines of inline sed changelog extraction with:

php /tmp/moko-platform/cli/release_notes.php \
  --path . --version "$VERSION" > /tmp/release_notes.txt
## Test Proof **Run:** [#10326](https://git.mokoconsulting.tech/ClarksvilleFurs/client-waas-clarksvillefurs/actions/runs/10326) **Result:** All 10 steps passed **Runner:** mokogitea-runner-02 with custom `moko/runner-images:ubuntu-latest` image ### Steps ``` [success] Clean workspace [success] Checkout [success] Install dependencies [success] Setup moko-platform [success] Read version [success] Build ZIP <-- joomla_build.php [success] Stream releases [success] Update updates.xml <-- updates_xml_sync.php [success] Bump dev version [success] Summary ``` Implemented in `client-waas-clarksvillefurs` and `Template-Client-WaaS`. ### Change Replaced ~5 lines of inline `sed` changelog extraction with: ```yaml php /tmp/moko-platform/cli/release_notes.php \ --path . --version "$VERSION" > /tmp/release_notes.txt ```
Sign in to join this conversation.
No labels
Type
Status
Priority
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/moko-platform#78