Skip to content

Commit

Permalink
Bump pantheon-systems/pantheon-wp-coding-standards from 1.0.1 to 2.0.1 (
Browse files Browse the repository at this point in the history
#454)

* Bump pantheon-systems/pantheon-wp-coding-standards from 1.0.1 to 2.0.1

Bumps [pantheon-systems/pantheon-wp-coding-standards](https://github.com/pantheon-systems/Pantheon-WP-Coding-Standards) from 1.0.1 to 2.0.1.
- [Release notes](https://github.com/pantheon-systems/Pantheon-WP-Coding-Standards/releases)
- [Commits](pantheon-systems/Pantheon-WP-Coding-Standards@1.0.1...2.0.1)

---
updated-dependencies:
- dependency-name: pantheon-systems/pantheon-wp-coding-standards
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* linting fixes

* add composer diff

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chris Reynolds <chris@jazzsequence.com>
  • Loading branch information
dependabot[bot] and jazzsequence authored Feb 7, 2024
1 parent 0961b6c commit 286aaef
Show file tree
Hide file tree
Showing 7 changed files with 335 additions and 92 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/composer-diff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Composer Diff
on:
pull_request:
paths:
- 'composer.lock'
permissions:
contents: write
pull-requests: write
jobs:
composer-diff:
name: Composer Diff
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate composer diff
id: composer_diff
uses: IonBazan/composer-diff-action@v1
- uses: marocchino/sticky-pull-request-comment@v2
if: ${{ steps.composer_diff.outputs.composer_diff_exit_code != 0 }}
with:
header: composer-diff
message: |
<summary>Composer Changes</summary>
${{ steps.composer_diff.outputs.composer_diff }}
5 changes: 2 additions & 3 deletions cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function enable() {
if ( file_exists( $drop_in ) ) {
WP_CLI::error( 'Unknown wp-content/object-cache.php already exists.' );
}
$object_cache = dirname( __FILE__ ) . '/object-cache.php';
$object_cache = __DIR__ . '/object-cache.php';
$target = self::get_relative_path( $drop_in, $object_cache );
chdir( WP_CONTENT_DIR );
// @codingStandardsIgnoreStart
Expand Down Expand Up @@ -184,7 +184,7 @@ private function load_wordpress_with_template() {

add_filter(
'template_include',
function( $template ) {
function ( $template ) {
$display_template = str_replace( dirname( get_template_directory() ) . '/', '', $template );
WP_CLI::debug( "Theme template: {$display_template}", 'redis-debug' );
return $template;
Expand Down Expand Up @@ -240,7 +240,6 @@ private static function get_relative_path( $from, $to ) {
}
return implode( '/', $rel_path );
}

}

WP_CLI::add_command( 'redis', 'WP_Redis_CLI_Command' );
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"behat/behat": "^3.1",
"behat/mink-extension": "^2.2",
"behat/mink-goutte-driver": "^1.2",
"pantheon-systems/pantheon-wp-coding-standards": "^1.0",
"pantheon-systems/pantheon-wp-coding-standards": "^2.0",
"pantheon-systems/pantheon-wordpress-upstream-tests": "dev-master",
"phpunit/phpunit": "^9",
"yoast/phpunit-polyfills": "^1.0"
Expand Down
Loading

0 comments on commit 286aaef

Please sign in to comment.