Skip to content

GH#2158: fix: drop composer.json version key so Composer resolves release tags (GH#2158) - #2159

Merged
superdav42 merged 1 commit into
mainfrom
feature/auto-20261127-121524-gh2158
Nov 27, 2026
Merged

superdav42 merged 1 commit into
mainfrom
feature/auto-20261127-121524-gh2158

Conversation

@superdav42

@superdav42 superdav42 commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Removed the version key from composer.json, stopped bin/deploy.sh rewriting it, and made the release workflow fail if the key reappears.

Files Changed

.github/workflows/release.yml, bin/deploy.sh, composer.json

Runtime Testing

  • Risk level: Medium
  • Verification: self-assessed — jq confirms no version key; bash -n bin/deploy.sh passes

Resolves #2158


aidevops.sh v3.39.189 plugin for OpenCode v1.19.5 with claude-sonnet-5-5 spent 52s and 1,941 tokens on this as a headless worker.

Summary by CodeRabbit

  • Chores
    • Updated release version checks and version-update handling to use the project’s supported version sources.
    • The Composer package manifest no longer contains a version field, and release cleanup no longer targets its backup.

@superdav42 superdav42 added the origin:worker Auto-created by pulse labelless backfill (t2112) label Nov 27, 2026
@superdav42

superdav42 commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator Author

Completion Summary


aidevops.sh v3.39.189 plugin for OpenCode v1.19.5 with claude-sonnet-5-5 spent 1m and 1,941 tokens on this as a headless worker.


Merged via PR #2159 to main.
Merged by deterministic merge pass (pulse-wrapper.sh).

Routing feedback

  • Route: standard; 1 attempt, 11 LLM requests, 0 capability escalations, 0 same-tier fallbacks.
  • Population: headless; 0 objective outcomes.
  • Usage: 702,717 tokens; $0.2586 estimated cost.
  • Recommendation: No routing change is recommended from this sample.

@ultimate-multisite ultimate-multisite Bot added the status:in-review Non-draft PR ready for review/merge label Nov 27, 2026
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Composer manifest no longer declares a package version, and deployment no longer updates that version. Release validation now fails if the manifest contains a version key.

Changes: Composer Version Handling

Layer / File(s) Summary
Remove Composer version updates
composer.json, bin/deploy.sh
The Composer version declaration and the deployment command that updated it were removed. Deployment backup cleanup no longer includes composer.json.bak.
Validate Composer version policy
.github/workflows/release.yml
Release validation fails when composer.json contains a version key. Otherwise, the existing tag and package version checks continue.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Medium

Possibly related PRs

Merge Risk: Minimal · up to c04dd

The change lets Composer derive package versions from VCS tags, which addresses the reported resolution problem. No concrete merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: removing the version key from composer.json so Composer resolves release tags, and it references issue GH#2158. The title is specific and matches the changeset. It rep…
Linked Issues check Passed [#2158] The issue allows either keeping composer.json .version in sync with the tag or removing the key. The PR removes the version key from composer.json (2.18.0 removed, per the file summary…
Out of Scope Changes check Passed All changed files relate to the composer.json version issue in #2158. composer.json: removes the version key. bin/deploy.sh: removes composer.json from version-update targets and from the ba…
Full details: Title check

Explanation

The title names the main change: removing the version key from composer.json so Composer resolves release tags, and it references issue GH#2158. The title is specific and matches the changeset. It repeats the issue number, which adds no information, but this does not make the title unrelated or vague.

Full details: Linked Issues check

Explanation

[#2158] The issue allows either keeping composer.json .version in sync with the tag or removing the key. The PR removes the version key from composer.json (2.18.0 removed, per the file summary). This satisfies the second option. bin/deploy.sh no longer updates composer.json, so the key does not return during version bumps. .github/workflows/release.yml adds a guard that fails the release when a version key exists in composer.json. This covers the workflow requirement that a release fails on a conflicting composer.json version. Remaining items in the issue are non-coding or post-merge: publishing a patch release (for example 2.20.1), and running composer require ultimate-multisite/ultimate-multisite:^2.20 --no-install against the new tag. The PR does not include automated tests for these checks. The author verified only with jq and bash -n. These checks do not block the coding requirements, but consumer resolution is not verified in this PR.

Full details: Out of Scope Changes check

Explanation

All changed files relate to the composer.json version issue in #2158. composer.json: removes the version key. bin/deploy.sh: removes composer.json from version-update targets and from the backup cleanup. Without the key, the script no longer writes or backs up composer.json, so these edits are the expected companion change. The script documentation lists only the plugin header, WP_Ultimo::VERSION, and package.json, which matches the new behavior. .github/workflows/release.yml: adds the guard that fails on a reappearing version key, which the issue requests. No unrelated changes are described in the summary.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: dcc1f6d2-64b4-4aa5-8be6-254e92218579
Commits

Reviewing files that changed from the base of the PR and between 7f1109d and c04dd84.

Files selected for processing: 3

  • .github/workflows/release.yml
  • bin/deploy.sh
  • composer.json
Files with no reviewable changes: 1

  • composer.json

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

@github-actions

Copy link
Copy Markdown

🔨 Build Complete - Ready for Testing!

📦 Download Build Artifact (Recommended)

Download the zip build, upload to WordPress and test:

🌐 Test in WordPress Playground (Very Experimental)

Click the link below to instantly test this PR in your browser - no installation needed!
Playground support for multisite is very limitied, hopefully it will get better in the future.

🚀 Launch in Playground

Login credentials: admin / password

@superdav42
superdav42 merged commit 188f060 into main Nov 27, 2026
15 checks passed
@superdav42 superdav42 added status:done Task is complete and removed status:in-review Non-draft PR ready for review/merge labels Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

origin:worker Auto-created by pulse labelless backfill (t2112) status:done Task is complete

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Release tags declare composer.json version 2.18.0, so Composer ignores 2.19.0 and 2.20.0

1 participant