Select plugin version#345
Open
sandyfzu wants to merge 9 commits into
Open
Conversation
Contributor
|
Some discussions here https://group-onecom.slack.com/archives/C08F4LZ1TFS/p1772554098168289 |
jeawhanlee
requested changes
Apr 14, 2026
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.
Description
Fixes #6 and #315
This code uses https://github.com/wp-media/automation-plugin-version-manager to build plugins from Git refs (tags, branches, and commits) and Github refs (PRs and releases). The repo is written in safe Rust but exposed to NodeJS JavaScript/TypeScript through napi.rs leveraging Rust safety from NodeJS with all TypeScript types defined.
To test this, just try the following:
(Make sure to do
npm ijust after checking out to this branch for dependencies to be installed)For WP Rocket:
For BackWPup:
Passing existing Git tags to the environment variables.
For private repositories like BackWPup, the method
createWithTokenResolutionwill attempt to resolve any git/github authentication in the environment (SSH keys, Github tokens, etc)Recording: https://jmp.sh/rjkYUTaF
Type of change
Detailed scenario
What was tested
Plugin building before E2E test.
How to test
Pass any gitref or GitHub ref to the environment variables (tags, branches, commits, or PR numbers), the tool will build the plugins from there:
For WP Rocket:
For BackWPup:
Affected Features & Quality Assurance Scope
N/A
Technical description
Documentation
Used APVM in a
BeforeAllhook.New dependencies
Risks
N/A
Mandatory Checklist
Code validation
N/A
Code style
N/A
Unticked items justification
N/A