feat: source-aware version bumps and pre-releases #31

Merged
jmiller merged 1 commits from feat/source-aware-bumps into main 2026-06-23 22:13:59 +00:00
Owner

Summary

Makes auto-bump and pre-release workflows platform-aware by reading .mokogitea/manifest.xml. Skips version bumps and pre-release builds when only workflows, docs, or config files change.

How it works

  1. Reads <platform> and <source-dir> from .mokogitea/manifest.xml
  2. Falls back to platform defaults: src/, source/, htdocs/ for Joomla
  3. Checks if the last commit touched any files in the source directory
  4. Skips all downstream steps if no source changes detected

Behavior by scenario

Scenario auto-bump pre-release
Push with source changes Bumps Builds
Push with only workflow/doc changes Skips Skips
workflow_dispatch N/A Always builds
Generic repo (no manifest) Always bumps Always builds

Files changed

  • auto-bump.yml: added source-check step, guarded bump step
  • pre-release.yml: added source-check step, guarded all build steps
## Summary Makes auto-bump and pre-release workflows platform-aware by reading `.mokogitea/manifest.xml`. Skips version bumps and pre-release builds when only workflows, docs, or config files change. ## How it works 1. Reads `<platform>` and `<source-dir>` from `.mokogitea/manifest.xml` 2. Falls back to platform defaults: `src/`, `source/`, `htdocs/` for Joomla 3. Checks if the last commit touched any files in the source directory 4. Skips all downstream steps if no source changes detected ## Behavior by scenario | Scenario | auto-bump | pre-release | |---|---|---| | Push with source changes | Bumps | Builds | | Push with only workflow/doc changes | Skips | Skips | | `workflow_dispatch` | N/A | Always builds | | Generic repo (no manifest) | Always bumps | Always builds | ## Files changed - `auto-bump.yml`: added source-check step, guarded bump step - `pre-release.yml`: added source-check step, guarded all build steps
jmiller added 1 commit 2026-06-23 22:13:19 +00:00
feat: make version bumps and pre-releases source-aware
Joomla: Extension CI / Tests (PHP 8.2) (pull_request) Blocked by required conditions
Joomla: Extension CI / Tests (PHP 8.3) (pull_request) Blocked by required conditions
Joomla: Extension CI / PHPStan Analysis (pull_request) Blocked by required conditions
Joomla: Extension CI / Build RC Pre-Release (pull_request) Blocked by required conditions
Universal: PR Check / Build RC Package (pull_request) Blocked by required conditions
Universal: PR Check / Report Issues (pull_request) Blocked by required conditions
Generic: Repo Health / Scripts governance (pull_request) Blocked by required conditions
Generic: Repo Health / Repository health (pull_request) Blocked by required conditions
Generic: Repo Health / Report Issues (pull_request) Blocked by required conditions
Universal: PR Check / Branch Policy (pull_request) Failing after 2s
Joomla: Extension CI / Release Readiness Check (pull_request) Failing after 4s
Generic: Repo Health / Site Health (pull_request) Has been skipped
Generic: Repo Health / Access control (pull_request) Successful in 2s
Universal: PR Check / Validate PR (pull_request) Failing after 6s
Universal: PR Check / Secret Scan (pull_request) Successful in 6s
Joomla: Extension CI / Lint & Validate (pull_request) Failing after 11s
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Joomla: Metadata Validation / Validate Joomla Metadata (pull_request) Failing after 37s
Branch Cleanup / Delete merged branch (pull_request) Failing after 1s
Universal: Workflow Sync Trigger / Sync workflows to live repos (pull_request) Successful in 32s
66da3fa30c
Reads .mokogitea/manifest.xml to detect platform and source directory.
Skips bumps and pre-releases when only workflows, docs, or config
files change — no more empty version increments.

- auto-bump: skips if no source files changed in last commit
- pre-release: skips build if push didn't touch source (dispatch always runs)
- Falls back to always-bump for generic repos without a manifest

Authored-by: Moko Consulting
jmiller merged commit b41ed2caa5 into main 2026-06-23 22:13:59 +00:00
jmiller deleted branch feat/source-aware-bumps 2026-06-23 22:14:00 +00:00
Sign in to join this conversation.