Update GitHub Actions, Node LTS and PHP pin - #4
Conversation
|
Note
|
| Layer / File(s) | Summary |
|---|---|
Workflow and runtime version alignment .github/workflows/ci.yml, .github/workflows/code-quality.yml, .github/workflows/release.yml, .nvmrc, package.json |
GitHub Actions, PHP, Node.js, Composer cache, and release action versions are updated. |
Theme identifier and metadata concretization package.json, composer.json, functions.php |
Placeholder package metadata and WordPress function names are replaced with concrete starter values and prefixes. |
Template guidance and theme configuration README.md, theme.json |
Placeholder customization guidance is expanded and the spacing scale custom setting is removed. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Possibly related issues
lightspeedwp/ls-starter-plugin#4— Covers similar GitHub Actions, Node.js, and PHP version update objectives.
Suggested reviewers: ashleyshaw
🚥 Pre-merge checks | ✅ 3 | ❌ 2
❌ Failed checks (1 warning, 1 inconclusive)
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Out of Scope Changes check | The PR includes README, package, Composer, functions.php, and theme.json changes that go beyond the linked issue's Actions/Node/PHP scope. | Split the template-default, docs, and validation fixes into a separate PR or add a linked issue covering them. | |
| Linked Issues check | ❓ Inconclusive | The Actions and Node updates align with #3, but the PHP fleet/version and lowest-supported-version coverage can't be verified from the summary. |
Provide the diff or test evidence for the PHP matrix and the fleet-targeted pin. |
✅ Passed checks (3 passed)
| Check name | Status | Explanation |
|---|---|---|
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | The title is concise and accurately reflects the main changes to Actions, Node, and PHP pins. |
| Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
✨ Finishing Touches
📝 Generate docstrings
- Create stacked PR
- Commit on current branch
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Commit unit tests in branch
chore/update-actions-node-php
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.
Comment @coderabbitai help to get the list of available commands.
|
Tick the box to add this pull request to the merge queue (same as
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/release.yml:
- Around line 20-24: Remove the cache: npm input from the actions/setup-node
step in the release workflow, while preserving the existing Node.js version-file
configuration and release behavior.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yml
Review profile: CHILL
Plan: Pro Plus
Run ID: 05321590-ce89-4eb5-a935-03851a44b5a2
📒 Files selected for processing (4)
.github/workflows/ci.yml.github/workflows/code-quality.yml.github/workflows/release.yml.nvmrc
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@README.md`:
- Around line 184-187: Update the README prefix replacement table so the
`ls_starter_` row uses a generic prefix example such as `my_theme_` and shows
`my_theme_setup` as the resulting function name, clearly distinguishing the
prefix from the complete example. Review the surrounding README guidance for
consistency and accuracy.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yml
Review profile: CHILL
Plan: Pro Plus
Run ID: 4367e7a7-32d0-437f-beb0-3f4db5e53a24
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (5)
README.mdcomposer.jsonfunctions.phppackage.jsontheme.json
| | Prefix | Replace with | | ||
| |------------------|-----------------------------------------------------------| | ||
| | `ls_starter_` | Function prefix, e.g. `ls_starter_setup` (snake_case slug) | | ||
| | `LS_STARTER_` | Constant prefix, if any constants are added (SCREAMING_SNAKE_CASE slug) | |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Clarify the PHP prefix replacement example.
ls_starter_ is the prefix, but ls_starter_setup is a complete function name. A scaffolder following this literally could produce duplicated suffixes. Use an example such as my_theme_, yielding my_theme_setup.
As per path instructions, README.md must be reviewed for accuracy and completeness.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@README.md` around lines 184 - 187, Update the README prefix replacement table
so the `ls_starter_` row uses a generic prefix example such as `my_theme_` and
shows `my_theme_setup` as the resulting function name, clearly distinguishing
the prefix from the complete example. Review the surrounding README guidance for
consistency and accuracy.
Source: Path instructions
{{TEXT_DOMAIN}}_setup/{{TEXT_DOMAIN}}_enqueue_assetsplaceholder function names (invalid PHP) with real identifiers under als_starter_prefix, so the template parses;{{TEXT_DOMAIN}}itself is unchanged as the text-domain string. README updated to document thels_starter_/LS_STARTER_prefix alongside the{{...}}tokens.Closes #3
Summary by CodeRabbit
Chores
Refactor
Documentation
UI/Theme Settings