Skip to content

Commit 8016d61

Browse files
committed
Merge branch 'main' into update-hwp-previews-readme
1 parent 00b289e commit 8016d61

File tree

90 files changed

+6647
-1302
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+6647
-1302
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"@wpengine/wpgraphql-logging-wordpress-plugin": patch
3+
---
4+
5+
Verify WordPress 6.9 compatibility and update CI test matrix
6+
7+
- Tested compatibility with WordPress 6.9
8+
- Updated CI test matrix to WordPress 6.9, 6.8, 6.7 (dropped 6.5, 6.6)
9+
- Updated dev dependencies (wordpress-core, wordpress-stubs to ^6.9, phpcompatibility to ^9.3)
10+
- Reduced readme.txt tags to 5 for WordPress.org compliance

.github/ISSUE_TEMPLATE/1-issue.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
name: "✅ Bug Report"
22
description: File a bug report.
3-
title: "[Bug]: "
3+
title: "[bug]: "
44
labels: ["bug"]
55
body:
66
- type: markdown
77
attributes:
88
value: |
99
## Thank You for taking the time to fill out this bug report! The more information you provide, the faster we can help.
10-
10+
1111
Please remember, a bug report is _not the place to ask questions_. You can
1212
use [Discord](https://discord.gg/YH8Pqja2) for that, or start a topic in [GitHub
1313
Discussions](https://github.com/wpengine/hwptoolkit/discussions).
14-
14+
1515
Also please note that _not all the fields are required_, but _the more information_ you provide, _the better_ we can help you.
1616
1717
- type: textarea

.github/ISSUE_TEMPLATE/2-docs.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: "📒 Documentation Issue"
2+
description: Report an issue with the hwptoolkit documentation.
3+
title: "[docs]: "
4+
labels: ["docs"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
## Thank you for helping us improve our documentation!
10+
11+
Before opening this issue, consider contributing the fix yourself! Check our [Documentation Contribution Guide](https://github.com/wpengine/hwptoolkit/blob/main/CONTRIBUTING.md#writing-documentation) to learn how to edit our docs following the [Diátaxis](https://diataxis.fr/) approach.
12+
13+
For feature requests or general questions, please use [GitHub Discussions](https://github.com/wpengine/hwptoolkit/discussions) instead.
14+
15+
- type: textarea
16+
id: issue
17+
attributes:
18+
label: What is the documentation issue?
19+
description: Briefly describe the problem with the documentation
20+
placeholder: "Example: The tutorial for HWP Previews contains outdated configuration steps"
21+
validations:
22+
required: true
23+
24+
- type: textarea
25+
id: context
26+
attributes:
27+
label: Additional context
28+
description: Any extra details that might help us understand the issue
29+
placeholder: "Example: The documentation mentions an old API that was changed in v2.0"
30+
validations:
31+
required: false
32+
33+
- type: input
34+
id: page-link
35+
attributes:
36+
label: Link to the documentation page (if it exists)
37+
description: Provide the URL or file path to the affected documentation
38+
placeholder: "Example: /docs/plugins/hwp-previews/tutorial/index.md"
39+
validations:
40+
required: false
41+
42+
- type: checkboxes
43+
id: terms
44+
attributes:
45+
label: Code of Conduct
46+
description: By submitting this issue, you agree to follow our [Code of Conduct](CODE_OF_CONDUCT.md).
47+
options:
48+
- label: I agree to follow this project's Code of Conduct
49+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
blank_issues_enabled: false
1+
blank_issues_enabled: true
22
contact_links:
33
- name: Community (Headless WordPress Discord)
44
url: https://faustjs.org/discord
@@ -7,7 +7,3 @@ contact_links:
77
- name: Support / Feature Request / General Help
88
url: https://github.com/wpengine/hwptoolkit/discussions
99
about: Please use our GitHub Discussions for questions, feature ideas, and general help
10-
11-
- name: Security Policy
12-
url: https://github.com/wpengine/hwptoolkit/security/policy
13-
about: Please review our security policy for reporting security vulnerabilities

.github/workflows/code-quality.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,11 @@ jobs:
6565
id: detect-php-version
6666
run: |
6767
PLUGIN="${{ steps.plugin.outputs.slug }}"
68-
PHP_VERSION="7.4"
69-
if [ -f "plugins/$PLUGIN/composer.json" ]; then
70-
DETECTED_VERSION=$(jq -r '.require["php"] // empty' plugins/$PLUGIN/composer.json | grep -oE '[0-9]+\.[0-9]+' | head -1)
71-
if [ -n "$DETECTED_VERSION" ]; then
72-
PHP_VERSION="$DETECTED_VERSION"
73-
echo "Detected PHP version $PHP_VERSION from composer.json"
74-
else
75-
echo "No PHP version found in composer.json, using default $PHP_VERSION"
76-
fi
77-
else
78-
echo "No composer.json found, using default PHP version $PHP_VERSION"
79-
fi
68+
# Use PHP 8.2 for code quality checks - PHPStan/Psalm can analyze older PHP code
69+
# while running on newer PHP. This is required because wordpress-stubs v6.8+
70+
# contain PHP 8+ syntax that cannot be parsed by PHP 7.4.
71+
PHP_VERSION="8.2"
72+
echo "Using PHP $PHP_VERSION for code quality checks"
8073
echo "php-version=$PHP_VERSION" >> $GITHUB_OUTPUT
8174
quality-checks:
8275
needs: detect-plugins

.github/workflows/codeception.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ jobs:
7878
matrix:
7979
plugin: ${{ fromJson(needs.detect-plugins.outputs.plugins) }}
8080
php: ["8.3","8.2","8.1"]
81-
wordpress: ["6.8","6.7","6.6","6.5"]
81+
wordpress: ["6.9","6.8","6.7"]
8282
include:
8383
- php: "8.2"
84-
wordpress: "6.8"
84+
wordpress: "6.9"
8585
coverage: 1
8686
fail-fast: false
8787

.github/workflows/plugin-check.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Runs WordPress Plugin Check on modified plugins to ensure compliance with
2+
# WordPress.org guidelines and coding standards.
3+
#
4+
# https://wordpress.org/plugins/plugin-check/
5+
6+
name: Plugin Check
7+
8+
on:
9+
push:
10+
branches:
11+
- main
12+
paths:
13+
- 'plugins/**'
14+
pull_request:
15+
branches:
16+
- main
17+
paths:
18+
- 'plugins/**'
19+
20+
jobs:
21+
detect-plugins:
22+
runs-on: ubuntu-latest
23+
name: Detect modified plugins
24+
outputs:
25+
plugins: ${{ steps.detect.outputs.plugins }}
26+
has-plugins: ${{ steps.detect.outputs.has-plugins }}
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
31+
- name: Get changed plugin directories
32+
id: plugin
33+
run: |
34+
if [ "${{ github.event_name }}" = "push" ]; then
35+
bash .github/scripts/get_plugin_slug.sh main
36+
else
37+
bash .github/scripts/get_plugin_slug.sh \
38+
${{ github.event.pull_request.base.sha }} \
39+
${{ github.event.pull_request.head.sha }}
40+
fi
41+
42+
- name: Set output
43+
id: detect
44+
run: |
45+
# get_plugin_slug.sh outputs: slug, plugins (JSON array), has-plugins
46+
if [ -z "${{ steps.plugin.outputs.slug }}" ]; then
47+
echo "plugins=[]" >> $GITHUB_OUTPUT
48+
echo "has-plugins=false" >> $GITHUB_OUTPUT
49+
exit 0
50+
fi
51+
echo "plugins=${{ steps.plugin.outputs.plugins }}" >> $GITHUB_OUTPUT
52+
echo "has-plugins=${{ steps.plugin.outputs.has-plugins }}" >> $GITHUB_OUTPUT
53+
54+
plugin-check:
55+
needs: detect-plugins
56+
if: needs.detect-plugins.outputs.has-plugins == 'true'
57+
runs-on: ubuntu-latest
58+
strategy:
59+
matrix:
60+
plugin: ${{ fromJson(needs.detect-plugins.outputs.plugins) }}
61+
fail-fast: false
62+
name: ${{ matrix.plugin }}
63+
steps:
64+
- name: Checkout
65+
uses: actions/checkout@v4
66+
67+
- name: Run Plugin Check
68+
uses: wordpress/plugin-check-action@v1
69+
with:
70+
build-dir: plugins/${{ matrix.plugin }}
71+
exclude-directories: |
72+
.git
73+
vendor
74+
node_modules
75+
tests
76+
ignore-warnings: true
77+
include-experimental: false

HOW_WE_WORK.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ We believe in transparent, collaborative development. These guidelines document
2323

2424
- Schedule releases Monday-Wednesday only
2525
- Distribute to WPE Updater and WordPress.org when applicable
26+
- Notify the [Headless WordPress Discord](https://faustjs.org/discord) as applicable for plugin release announcements
2627

2728
## Effective Communication
2829

0 commit comments

Comments
 (0)