Repository navigation
Release script: check Tested up to against the current WordPress release - #3179
Open
tellyworth wants to merge 1 commit into
Open
tellyworth wants to merge 1 commit into
tellyworth wants to merge 1 commit into
Conversation
When the plugin's Tested up to headers are behind the current WordPress release, or the plugin header and readme.txt disagree, the script now says so and asks whether the plugin was tested on that version. Yes sets both headers in the release commit. No asks whether to release anyway, and a second no stops before anything is changed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes Proposed in this Pull Request
make releaseprinted the plugin'sTested up tovalue but never checked it, so keeping it current depended on someone remembering. This makes the release script check it.api.wordpress.organd compares it withTested up toin the main plugin file and inreadme.txt.Tested up to. Yes carries on as before. No stops before any branch or file is touched.scripts/tested-up-to.mjs, which reads the file paths fromrelease.config.jsonlike the rest of the script.Testing Instructions
Tested in a scratch clone with the push URL pointed at a path that doesn't exist, so nothing could reach GitHub:
node scripts/prepare-release.mjs 9.9.9asks nothing new. Answer no at "Proceed with release preparation?".Tested up to: 6.9committed toreadme.txt:Tested up to: 7.1 (set in the plugin header and the readme by this release). Continuing writesTested up to: 7.1and the new version toreadme.txtin the release commit, then the push fails as intended.6.10against6.9and a missing header.Not tested: the wordpress.org failure path against a real outage. Any fetch or parse error returns an empty version, which the script treats as "skip the check".
Answers piped on stdin may not reach the second prompt, so a release with out-of-date headers is best run in a terminal. If the input runs out, the script stops at the prompt without changing anything.
Release Notes