Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
fe6029b
Merge pull request #171 from Automattic/release/0.7.1
GaryJones Sep 9, 2023
9598e22
Bump ramsey/composer-install from 2 to 3
dependabot[bot] Mar 1, 2024
009f813
Merge pull request #173 from Automattic/dependabot/github_actions/ram…
GaryJones Mar 5, 2024
3d39579
Bump codecov/codecov-action from 3 to 5
dependabot[bot] Nov 15, 2024
5d2aea2
CI: Add codecov token secret reference
GaryJones Nov 15, 2024
2995e39
Merge pull request #174 from Automattic/dependabot/github_actions/cod…
GaryJones Nov 15, 2024
ed23f9e
Update GitHub action to install SVN before deploy to WordPress.org
raamdev Dec 3, 2024
e6b3ef2
Merge pull request #175 from Automattic/update/deploy-action
raamdev Dec 4, 2024
5b7092f
Fix YAML syntax in GitHub Action for deploy to WordPress.org
raamdev Dec 4, 2024
4dd4379
Merge pull request #176 from Automattic/fix/deploy-action
raamdev Dec 4, 2024
e8fd628
Add wp-env configuration for local development
GaryJones Nov 5, 2025
69c680a
Merge pull request #178 from Automattic/feat/wp-env-config
GaryJones Nov 5, 2025
596bf58
Update composer.json
GaryJones Nov 6, 2025
5d75a08
Merge pull request #180 from Automattic/update/normalize-composer-json
GaryJones Nov 6, 2025
941f72a
Update minimum WordPress version to 6.4
GaryJones Nov 7, 2025
4982398
Merge pull request #181 from Automattic/update/min-wp-version-6.4
GaryJones Nov 7, 2025
06a1a25
Bump actions/checkout from 4 to 5
dependabot[bot] Nov 7, 2025
6f24cd7
ci: migrate integration tests from SVN to wp-env
GaryJones Nov 9, 2025
ba533fb
Merge pull request #182 from Automattic/update/migrate-to-wp-env
GaryJones Nov 9, 2025
27128e0
Merge pull request #177 from Automattic/dependabot/github_actions/act…
GaryJones Nov 9, 2025
63465b6
Bump actions/checkout from 5 to 6
dependabot[bot] Nov 21, 2025
46ec618
Merge pull request #183 from Automattic/dependabot/github_actions/act…
GaryJones Nov 21, 2025
15f34c9
ci: standardise GitHub Actions and dependency management
GaryJones Dec 13, 2025
14acc62
chore: standardise .gitignore and add .distignore
GaryJones Dec 13, 2025
e7fb1df
test: add unit test suite with Brain Monkey
GaryJones Dec 13, 2025
947805c
ci: add unit test workflow
GaryJones Dec 13, 2025
83610a9
Merge pull request #184 from Automattic/standardize/configs-and-ci
GaryJones Dec 14, 2025
8785eb6
chore: migrate dependabot reviewers to CODEOWNERS
GaryJones Dec 14, 2025
008f061
Merge pull request #185 from Automattic/chore/codeowners-migration
GaryJones Dec 14, 2025
d6a941d
fix: prevent empty widget wrapper output when no ad codes found
GaryJones Dec 14, 2025
8cefa2e
Merge pull request #186 from Automattic/fix/72-no-ad-code-empty-output
GaryJones Dec 14, 2025
2ccd599
ci: standardise test matrix and update readme
GaryJones Dec 16, 2025
c2f1ab7
Merge pull request #187 from Automattic/update/ci-test-matrix-and-readme
GaryJones Dec 17, 2025
cce5180
feat: add wrapper div with CSS classes for improved ad styling
GaryJones Dec 20, 2025
53a731f
fix: ensure row actions display in first data column
GaryJones Dec 21, 2025
6b49a8b
docs: add contextual help for DFP and AdSense provider fields
GaryJones Dec 21, 2025
051f3b5
Merge pull request #188 from Automattic/fix/71-add-wrapper-classes
GaryJones Dec 21, 2025
2987feb
Merge pull request #189 from Automattic/fix/51-row-actions-first-column
GaryJones Dec 21, 2025
f5fe1e5
Merge pull request #191 from Automattic/docs/123-dfp-field-explanations
GaryJones Dec 21, 2025
2ea1751
fix: validate unique tag IDs for DFP Async provider
GaryJones Dec 21, 2025
a24f6d7
Merge pull request #190 from Automattic/fix/69-dfp-async-unique-tag-v…
GaryJones Dec 21, 2025
bf56c92
chore(deps-dev): bump braces from 3.0.2 to 3.0.3
dependabot[bot] Dec 21, 2025
41528d9
docs: add PHPDoc documentation for all hooks
GaryJones Dec 21, 2025
9cfbe02
Merge pull request #193 from Automattic/docs/157-document-hooks
GaryJones Dec 21, 2025
87cc1b8
Merge pull request #192 from Automattic/dependabot/npm_and_yarn/brace…
GaryJones Dec 21, 2025
e6a1ed4
feat: add autocomplete for conditional arguments
GaryJones Dec 21, 2025
78398df
fix: convert input to hidden type for Select2 AJAX compatibility
GaryJones Dec 21, 2025
e879cbf
fix: load Select2 from CDN when not already available
GaryJones Dec 21, 2025
93f398a
fix: use dynamic select element for Select2 AJAX compatibility
GaryJones Dec 21, 2025
ad363f3
fix: hide arguments field for conditionals that take no parameters
GaryJones Dec 21, 2025
227c695
fix: improve admin UI layout and usability
GaryJones Dec 21, 2025
62e46d4
fix: scope autocomplete to Add form only, add Select2 fallback
GaryJones Dec 21, 2025
9951b1e
Merge pull request #194 from Automattic/feature/42-conditional-autoco…
GaryJones Dec 21, 2025
5cc139a
feat: add dedicated edit page to replace inline editing
GaryJones Dec 21, 2025
6ce120f
Merge pull request #196 from Automattic/feature/195-dedicated-edit-page
GaryJones Dec 21, 2025
b8f61ec
Version 0.8.0 changelog
GaryJones Dec 21, 2025
15144e3
Version 0.8.0 i18n
GaryJones Dec 21, 2025
32874a7
Version 0.8.0
GaryJones Dec 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Directories
/.git/
/.github/
/bin/
/node_modules/
/tests/
/vendor/

# Files
.distignore
.editorconfig
.gitattributes
.gitignore
.phpcs.xml.dist
.wp-env.json
.wp-env.override.json
CHANGELOG.md
composer.json
composer.lock
package.json
package-lock.json
phpunit.xml.dist
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# The following teams will get auto-tagged for a review.
# See https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
* @Automattic/vip-plugins
41 changes: 32 additions & 9 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,42 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
# Configuration for Dependabot version updates
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
day: "monday"
groups:
actions:
patterns: ["*"]
labels:
- "dependencies"
commit-message:
prefix: "Actions"
include: "scope"
open-pull-requests-limit: 5

# Maintain dependencies for Composer
- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
day: "tuesday"
groups:
dev-dependencies:
patterns:
- "automattic/*"
- "dealerdirect/*"
- "php-parallel-lint/*"
- "phpcompatibility/*"
- "phpunit/*"
- "squizlabs/*"
- "yoast/*"
labels:
- "dependencies"
commit-message:
prefix: "Composer"
include: "scope"
open-pull-requests-limit: 5
versioning-strategy: increase-if-necessary
17 changes: 11 additions & 6 deletions .github/workflows/cs-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
# Allow manually triggering the workflow.
workflow_dispatch:

# Disable all permissions by default. Enable specific permissions per job.
permissions: {}

jobs:
checkcs:
name: Lint checks for PHP ${{ matrix.php }}
Expand All @@ -32,7 +35,7 @@ jobs:

steps:
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
with:
php-version: ${{ matrix.php }}
coverage: none
Expand All @@ -41,20 +44,22 @@ jobs:
# Show PHP lint violations inline in the file diff.
# @link https://github.com/marketplace/actions/xmllint-problem-matcher
- name: Register PHP lint violations to appear as file diff comments
uses: korelstar/phplint-problem-matcher@v1
uses: korelstar/phplint-problem-matcher@cb2b753750ec7bf13a7cde0a476df8c5605bdfb1 # v1.2.0

# Show XML violations inline in the file diff.
# @link https://github.com/marketplace/actions/xmllint-problem-matcher
- name: Register XML violations to appear as file diff comments
uses: korelstar/xmllint-problem-matcher@v1
uses: korelstar/xmllint-problem-matcher@1bd292d642ddf3d369d02aaa8b262834d61198c0 # v1.2.0

- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false

# Install dependencies and handle caching in one go.
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
- name: Install Composer dependencies
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520 # 3.1.1

# Lint PHP.
- name: Lint PHP against parse errors
Expand All @@ -64,7 +69,7 @@ jobs:
# @link https://github.com/marketplace/actions/xml-lint
- name: Lint phpunit.xml.dist
if: ${{ matrix.php >= 8.0 }}
uses: ChristophWurst/xmllint-action@v1
uses: ChristophWurst/xmllint-action@7c54ff113fc0f6d4588a15cb4dfe31b6ecca5212 # v1.2.1
with:
xml-file: ./phpunit.xml.dist
xml-schema-file: ./vendor/phpunit/phpunit/phpunit.xsd
14 changes: 12 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,26 @@ on:
# Allow manually triggering the workflow.
workflow_dispatch:

# Disable all permissions by default. Enable specific permissions per job.
permissions: {}

jobs:
tag:
name: New tag
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false

- name: Install SVN (Subversion)
run: |
sudo apt-get update
sudo apt-get install subversion

- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@stable
uses: 10up/action-wordpress-plugin-deploy@54bd289b8525fd23a5c365ec369185f2966529c2 # 2.3.0
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
Expand Down
77 changes: 77 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Run PHPUnit

on:
# Run on all pushes and on all pull requests.
# Prevent the "push" build from running when there are only irrelevant changes.
push:
paths-ignore:
- "**.md"
pull_request:

# Allow manually triggering the workflow.
workflow_dispatch:

# Disable all permissions by default. Enable specific permissions per job.
permissions: {}

# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
# The concurrency group contains the workflow name and the branch name.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: WP ${{ matrix.wordpress }} on PHP ${{ matrix.php }}
runs-on: ubuntu-latest

env:
WP_VERSION: ${{ matrix.wordpress }}

strategy:
matrix:
include:
# Check lowest supported WP version, with the lowest supported PHP.
- wordpress: '6.4'
php: '7.4'
# Check latest WP with the latest PHP.
- wordpress: 'master'
php: 'latest'
fail-fast: false

steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false

- name: Install wordpress environment
run: npm install -g @wordpress/env

- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer

- name: Setup problem matchers for PHP
run: echo "::add-matcher::${TOOL_CACHE}/php.json"
env:
TOOL_CACHE: ${{ runner.tool_cache }}

- name: Setup Problem Matchers for PHPUnit
run: echo "::add-matcher::${TOOL_CACHE}/phpunit.json"
env:
TOOL_CACHE: ${{ runner.tool_cache }}

- name: Install Composer dependencies
uses: ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520 # 3.1.1

- name: Setup wp-env
run: wp-env start
env:
WP_ENV_CORE: WordPress/WordPress#${{ matrix.wordpress }}

- name: Run integration tests
run: composer test:integration --no-interaction
100 changes: 0 additions & 100 deletions .github/workflows/integrations.yml

This file was deleted.

Loading