Skip to content

Commit 3b6a476

Browse files
authored
Merge pull request #69 from Automattic/release/1.6.0
2 parents 9b69cd4 + e44fde3 commit 3b6a476

20 files changed

+545
-25
lines changed

.distignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Directories
2+
/.git/
3+
/.github/
4+
/bin/
5+
/node_modules/
6+
/tests/
7+
/vendor/
8+
9+
# Files
10+
.distignore
11+
.editorconfig
12+
.gitattributes
13+
.gitignore
14+
.phpcs.xml.dist
15+
.wp-env.json
16+
.wp-env.override.json
17+
CHANGELOG.md
18+
composer.json
19+
composer.lock
20+
package.json
21+
package-lock.json
22+
phpunit.xml.dist

.editorconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# This file is for unifying the coding style for different editors and IDEs
2-
# editorconfig.org
2+
# It is based on https://core.trac.wordpress.org/browser/trunk/.editorconfig
3+
# See https://editorconfig.org for more information about the standard.
34

45
# WordPress Coding Standards
5-
# http://make.wordpress.org/core/handbook/coding-standards/
6+
# https://make.wordpress.org/core/handbook/coding-standards/
67

78
root = true
89

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# The following teams will get auto-tagged for a review.
2+
# See https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
3+
* @Automattic/vip-plugins

.github/dependabot.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Configuration for Dependabot version updates
2+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
3+
4+
version: 2
5+
updates:
6+
- package-ecosystem: "github-actions"
7+
directory: "/"
8+
schedule:
9+
interval: "weekly"
10+
day: "monday"
11+
groups:
12+
actions:
13+
patterns: ["*"]
14+
labels:
15+
- "dependencies"
16+
commit-message:
17+
prefix: "Actions"
18+
include: "scope"
19+
open-pull-requests-limit: 5
20+
21+
- package-ecosystem: "composer"
22+
directory: "/"
23+
schedule:
24+
interval: "weekly"
25+
day: "tuesday"
26+
groups:
27+
dev-dependencies:
28+
patterns:
29+
- "automattic/*"
30+
- "dealerdirect/*"
31+
- "php-parallel-lint/*"
32+
- "phpcompatibility/*"
33+
- "phpunit/*"
34+
- "squizlabs/*"
35+
- "yoast/*"
36+
labels:
37+
- "dependencies"
38+
commit-message:
39+
prefix: "Composer"
40+
include: "scope"
41+
open-pull-requests-limit: 5
42+
versioning-strategy: increase-if-necessary

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
contents: read
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
18+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
1919
with:
2020
persist-credentials: false
2121

.github/workflows/integration.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: Run PHPUnit
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
- trunk
8+
paths:
9+
- '.github/workflows/integration.yml'
10+
- '**.php'
11+
- 'phpunit.xml.dist'
12+
- 'composer.json'
13+
pull_request:
14+
paths:
15+
- '.github/workflows/integration.yml'
16+
- '**.php'
17+
- 'phpunit.xml.dist'
18+
- 'composer.json'
19+
workflow_dispatch:
20+
21+
permissions:
22+
contents: read
23+
24+
# Cancels all previous workflow runs for the same branch that have not yet completed.
25+
concurrency:
26+
group: ${{ github.workflow }}-${{ github.ref }}
27+
cancel-in-progress: true
28+
29+
jobs:
30+
test:
31+
name: WP ${{ matrix.wordpress }} on PHP ${{ matrix.php }}
32+
runs-on: ubuntu-latest
33+
34+
env:
35+
WP_ENV_CORE: WordPress/WordPress#${{ matrix.wordpress }}
36+
37+
strategy:
38+
matrix:
39+
include:
40+
# Check lowest supported WP version, with the lowest supported PHP.
41+
- wordpress: '6.4'
42+
php: '7.4'
43+
# Check latest WP with the latest PHP.
44+
- wordpress: 'master'
45+
php: 'latest'
46+
fail-fast: false
47+
48+
steps:
49+
- name: Checkout code
50+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
51+
with:
52+
persist-credentials: false
53+
54+
- name: Install wordpress environment
55+
run: npm install -g @wordpress/env
56+
57+
- name: Setup PHP ${{ matrix.php }}
58+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
59+
with:
60+
php-version: ${{ matrix.php }}
61+
tools: composer
62+
63+
- name: Install Composer dependencies
64+
uses: ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520 # 3.1.1
65+
66+
- name: Setup problem matchers for PHP
67+
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
68+
69+
- name: Setup problem matchers for PHPUnit
70+
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
71+
72+
- name: Setup wp-env
73+
run: wp-env start
74+
75+
- name: Run integration tests (single site)
76+
run: composer test:integration
77+
78+
- name: Run integration tests (multisite)
79+
run: composer test:integration-ms

.gitignore

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1+
# Dependencies
2+
/node_modules/
13
/vendor/
2-
.phpcs.xml
3-
phpcs.xml
4-
composer.lock
4+
5+
# Composer
6+
/composer.lock
7+
8+
# Tests
9+
/.phpunit.cache/
10+
11+
# Local config overrides
12+
/.phpcs.xml
13+
/phpcs.xml
14+
/phpunit.xml
15+
/.wp-env.override.json

.phpcs.xml.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="wp-parsely" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
3-
<description>Custom ruleset for wp-parsely plugin.</description>
3+
<description>Custom ruleset for rewrite-rules-inspector plugin.</description>
44

55
<!-- For help in understanding this file: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml -->
66
<!-- For help in using PHPCS: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage -->
@@ -39,7 +39,7 @@
3939
<rule ref="WordPress-Docs"/>
4040
<!-- For help in understanding these custom sniff properties:
4141
https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties -->
42-
<config name="minimum_supported_wp_version" value="5.9"/>
42+
<config name="minimum_supported_wp_version" value="6.4"/>
4343

4444
<!-- Rules: WordPress VIP - see
4545
https://github.com/Automattic/VIP-Coding-Standards -->

.wp-env.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"plugins": [
3+
"."
4+
],
5+
"phpVersion": "7.4",
6+
"config": {
7+
"WP_DEBUG": true,
8+
"WP_DEBUG_LOG": true,
9+
"SCRIPT_DEBUG": true
10+
},
11+
"lifecycleScripts": {
12+
"afterStart": "wp-env run cli wp plugin install query-monitor --activate"
13+
},
14+
"env": {
15+
"tests": {
16+
"phpVersion": "8.4",
17+
"core": "WordPress/WordPress#trunk"
18+
}
19+
}
20+
}

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,30 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.6.0] - 2026-01-06
8+
9+
Minimum WordPress version is now 6.4.
10+
11+
### Changed
12+
13+
- chore: bump minimum WordPress version to 6.4 by @GaryJones in https://github.com/Automattic/Rewrite-Rules-Inspector/pull/61
14+
15+
### Documentation
16+
17+
- docs: add detailed explanation for "Flush Rules" functionality in README by @GaryJones in https://github.com/Automattic/Rewrite-Rules-Inspector/pull/59
18+
19+
### Maintenance
20+
21+
- chore: add wp-env configuration for local development by @GaryJones in https://github.com/Automattic/Rewrite-Rules-Inspector/pull/60
22+
- chore: standardise .editorconfig file by @GaryJones in https://github.com/Automattic/Rewrite-Rules-Inspector/pull/62
23+
- chore: normalise composer.json by @GaryJones in https://github.com/Automattic/Rewrite-Rules-Inspector/pull/63
24+
- chore: standardise .gitignore and add .distignore by @GaryJones in https://github.com/Automattic/Rewrite-Rules-Inspector/pull/64
25+
- ci: add Dependabot, lint scripts, and test infrastructure by @GaryJones in https://github.com/Automattic/Rewrite-Rules-Inspector/pull/64
26+
- Composer(deps-dev): update rector/rector requirement from ^1.2 to ^2.2 by @dependabot in https://github.com/Automattic/Rewrite-Rules-Inspector/pull/66
27+
- Actions(deps): bump actions/checkout in the actions group by @dependabot in https://github.com/Automattic/Rewrite-Rules-Inspector/pull/65
28+
- chore: add CODEOWNERS file and migrate Dependabot reviewers by @GaryJones in https://github.com/Automattic/Rewrite-Rules-Inspector/pull/67
29+
- ci: add integration test workflow and consolidate test bootstrap by @GaryJones in https://github.com/Automattic/Rewrite-Rules-Inspector/pull/68
30+
731
## [1.5.1] - 2025-10-14
832

933
### Fixed
@@ -81,6 +105,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
81105
- Filter by different sources of rewrite rules.
82106
- An error message appears if rewrite rules are missing in the database.
83107

108+
[1.6.0]: https://github.com/Automattic/Rewrite-Rules-Inspector/compare/1.5.1...1.6.0
84109
[1.5.1]: https://github.com/Automattic/Rewrite-Rules-Inspector/compare/1.5.0...1.5.1
85110
[1.5.0]: https://github.com/Automattic/Rewrite-Rules-Inspector/compare/1.4.0...1.5.0
86111
[1.4.0]: https://github.com/Automattic/Rewrite-Rules-Inspector/compare/1.3.1...1.4.0

0 commit comments

Comments
 (0)