Sync GatherPress Alpha version + SECURITY.md tables on version generate#4
Open
mauteri wants to merge 3 commits into
Open
Sync GatherPress Alpha version + SECURITY.md tables on version generate#4mauteri wants to merge 3 commits into
mauteri wants to merge 3 commits into
Conversation
Extends the generate_version WP-CLI command so a single version bump also: - Sets the GatherPress Alpha plugin header version to match core (lockstep companion; sibling dir derived from GATHERPRESS_CORE_PATH). - Refreshes the Supported Versions table in both core and alpha SECURITY.md to '<major.minor>.x' supported / '< <major.minor>' unsupported, with any -alpha/-beta/-rc suffix stripped. Missing alpha plugin / SECURITY.md files warn and skip rather than fail. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Replaces the in-place SECURITY.md edit with a generated approach, matching how
README.md / readme.txt are built from parts/:
- New parts/shared/security.md template with a {{SUPPORTED_VERSIONS_TABLE}} token.
- generate_security() injects the table for the current major.minor (X.Y.x
supported, < X.Y not) and writes the full doc to core + alpha SECURITY.md.
Alpha version-header sync stays an in-place edit (it's a plugin header, not a doc).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Remove the Supported Versions section from gatherpress-develop's own SECURITY.md (internal tooling, no version-support matrix needed). - Add 'supernovia' to the gatherpress-team for 0.34.0-beta.1 in data/credits.php.
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.
Summary
Folds two steps into the existing
generate_versionWP-CLI command so one version bump propagates everywhere, instead of editing these by hand:gatherpress-alpha/gatherpress-alpha.php'sVersion:header to match core (lockstep companion). Alpha's path is derived as a sibling ofGATHERPRESS_CORE_PATH(../gatherpress-alpha).gatherpressandgatherpress-alphato:-alpha/-beta/-rcsuffix stripped (e.g.0.34.0-beta.1→0.34).Source of truth is the core version (
GATHERPRESS_VERSION/gatherpress.php), same as the existing command. Nopackage.jsonversion on alpha, so nothing to do there.Behavior notes
Version:regex,WP_CLI::success/error, path constants).Tested
php -lclean.0.34.x/< 0.34and bump alpha to0.34.0-beta.1correctly.🤖 Generated with Claude Code