From ce866bef599a80acab26167ee0ec64048830149a Mon Sep 17 00:00:00 2001 From: Thoriq Firdaus <2067467+tfirdaus@users.noreply.github.com> Date: Sat, 1 Jun 2024 13:28:50 +0700 Subject: [PATCH] Sync classes (#15) Sync classes from WordPress.org repository. --- .github/workflows/ci.yml | 4 +++- bin/sync-markdown-class | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 538d72f..549a077 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,9 +6,11 @@ on: types: [opened, reopened, synchronize] branches: - main + - sync paths: - - ".github/workflows/test.yml" + - ".github/workflows/ci.yml" - "**.php" + - "bin/*" - "composer.json" - "phpcs.xml.dist" - "phpunit.xml.dist" diff --git a/bin/sync-markdown-class b/bin/sync-markdown-class index abbabe0..3beba28 100644 --- a/bin/sync-markdown-class +++ b/bin/sync-markdown-class @@ -21,7 +21,7 @@ $content = file_get_contents( ); $content = str_replace( 'namespace WordPressdotorg\Plugin_Directory', - 'namespace Syntatis\WP\PluginReadMeParser', + 'namespace Syntatis\WPPluginReadMeParser', $content ); $content = preg_replace(