Skip to content

Release: compare an edited git-sourced plugin with composer.lock's ref - #5

Merged
oxyc merged 1 commit into
mainfrom
fix/release-baseline-lock-ref
Nov 18, 2026
Merged

oxyc merged 1 commit into
mainfrom
fix/release-baseline-lock-ref

Conversation

@oxyc

@oxyc oxyc commented Nov 18, 2026

Copy link
Copy Markdown
Member

The release check hashes the checkout's composer install. A foreman worktree clones that install from the main checkout, and Composer doesn't reinstall a version it already has, so hand edits in the main checkout became the baseline.

holmasto's urgent release:web/app/plugins/woocommerce-conditional-shipping-and-payments flag was exactly that: all 67 PHP files on production match the fork at the lock's ref fc60653, while the local copy had three hand-added public $method_title; declarations.

  • ReadRepo records Sources: unpatched plugins and mu-plugins whose lock source is git on github.com, by install folder, with the lock's ref.
  • release() fetches a differing file of one of those at the ref (gh api …/contents/…?ref=, read only). When production matches, it isn't flagged; a note names the edited checkout. A failed fetch keeps the flag.
  • Patched packages are left out: the ref doesn't carry the patch.

Checked against GitHub: the fetched class-wc-csp-restrict-shipping-methods.php at fc60653 is byte-identical to production's.

go vet ./... and go test ./... pass.

Foreman still pins wp-data-audit at 0144758, so it needs a bump to pick this (and #2–#4) up.

🤖 Generated with Claude Code

The release check hashes the checkout's composer install. A foreman
worktree clones that install from the main checkout, and Composer doesn't
reinstall a version it already has, so hand edits there became the
baseline: holmasto's urgent flag on three Conditional Shipping and Payments
files was production being clean and the local copy edited.

A differing file in an unpatched plugin or mu-plugin installed from GitHub
(composer.lock source type git) is now fetched at the lock's ref with gh;
when production matches it, it isn't flagged and a note names the edited
checkout. A fetch that fails keeps the flag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oxyc
oxyc merged commit 5a813fe into main Nov 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant