From 76fe348846ea6eb7c49ab4299cc9e805d8f19811 Mon Sep 17 00:00:00 2001 From: Kevin Stubbs Date: Wed, 31 Jul 2024 15:52:54 +0700 Subject: [PATCH 1/3] Update composer.json to point to pantheon-systems org --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 2a700cf..3497e05 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ }, "require": { "php": ">=8", - "digitalpolygon/pcc-php-sdk": "dev-main" + "pantheon-systems/pcc-php-sdk": "dev-main" }, "require-dev": { "wp-coding-standards/wpcs": "^3.1", From 3610a1223c73774524979b788d8fa51a25c7425f Mon Sep 17 00:00:00 2001 From: Al N Date: Wed, 31 Jul 2024 12:12:38 +0300 Subject: [PATCH 2/3] update composer.lock --- composer.lock | 78 +++++++++++++++++++++++++-------------------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/composer.lock b/composer.lock index 2bc3e23..eba03bf 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "2b57baf0a05f67d22a7a5c7137809bae", + "content-hash": "d7aba901d8b37456f5b9bd3298645254", "packages": [ { "name": "cfpinto/graphql", @@ -59,43 +59,6 @@ }, "time": "2023-01-20T17:13:41+00:00" }, - { - "name": "digitalpolygon/pcc-php-sdk", - "version": "dev-main", - "source": { - "type": "git", - "url": "git@github.com:pantheon-systems/pcc-php-sdk.git", - "reference": "fc5141ff83764dc881e002dd25977dadb1d25c21" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/pantheon-systems/pcc-php-sdk/zipball/fc5141ff83764dc881e002dd25977dadb1d25c21", - "reference": "fc5141ff83764dc881e002dd25977dadb1d25c21", - "shasum": "" - }, - "require": { - "cfpinto/graphql": "v2.0.0", - "erusev/parsedown": "^1.7", - "guzzlehttp/guzzle": "^7.8", - "guzzlehttp/promises": "^2.0", - "guzzlehttp/psr7": "^2.6", - "php": ">=8" - }, - "default-branch": true, - "type": "library", - "autoload": { - "psr-4": { - "PccPhpSdk\\": "src/" - } - }, - "description": "SDK Library for PCC Integration.", - "homepage": "https://github.com/digitalpolygon/pcc-php-sdk/", - "support": { - "source": "https://github.com/pantheon-systems/pcc-php-sdk/tree/main", - "issues": "https://github.com/pantheon-systems/pcc-php-sdk/issues" - }, - "time": "2024-07-26T12:57:07+00:00" - }, { "name": "erusev/parsedown", "version": "1.7.4", @@ -471,6 +434,43 @@ ], "time": "2024-07-18T11:15:46+00:00" }, + { + "name": "pantheon-systems/pcc-php-sdk", + "version": "dev-main", + "source": { + "type": "git", + "url": "git@github.com:pantheon-systems/pcc-php-sdk.git", + "reference": "695c7c3d50e075df8df8fc69270b215b2927b3c5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/pantheon-systems/pcc-php-sdk/zipball/695c7c3d50e075df8df8fc69270b215b2927b3c5", + "reference": "695c7c3d50e075df8df8fc69270b215b2927b3c5", + "shasum": "" + }, + "require": { + "cfpinto/graphql": "v2.0.0", + "erusev/parsedown": "^1.7", + "guzzlehttp/guzzle": "^7.8", + "guzzlehttp/promises": "^2.0", + "guzzlehttp/psr7": "^2.6", + "php": ">=8" + }, + "default-branch": true, + "type": "library", + "autoload": { + "psr-4": { + "PccPhpSdk\\": "src/" + } + }, + "description": "SDK Library for PCC Integration.", + "homepage": "https://github.com/pantheon-systems/pcc-php-sdk/", + "support": { + "source": "https://github.com/pantheon-systems/pcc-php-sdk/tree/main", + "issues": "https://github.com/pantheon-systems/pcc-php-sdk/issues" + }, + "time": "2024-07-31T08:51:43+00:00" + }, { "name": "psr/http-client", "version": "1.0.3", @@ -1200,7 +1200,7 @@ "aliases": [], "minimum-stability": "stable", "stability-flags": { - "digitalpolygon/pcc-php-sdk": 20 + "pantheon-systems/pcc-php-sdk": 20 }, "prefer-stable": false, "prefer-lowest": false, From de09add2a36b326dcf13e7ee06e19578fc6555ba Mon Sep 17 00:00:00 2001 From: Al N Date: Wed, 31 Jul 2024 15:14:35 +0300 Subject: [PATCH 3/3] clean lint workflow --- .github/workflows/php-style-lint.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/php-style-lint.yml b/.github/workflows/php-style-lint.yml index a1167c3..699ba05 100644 --- a/.github/workflows/php-style-lint.yml +++ b/.github/workflows/php-style-lint.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest env: - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: Setup PHP @@ -31,5 +31,8 @@ jobs: # Run `phpcs` on the remaining files and pass output to `cs2pr`. run: | echo "Files for this PR:" - gh pr diff ${{ github.event.number }} --name-only | grep .php | xargs find 2> /dev/null | cat - gh pr diff ${{ github.event.number }} --name-only | grep .php | xargs find 2> /dev/null | xargs vendor/bin/phpcs -nq --report=checkstyle | cs2pr + gh pr diff $PR --name-only | grep .php | xargs find 2> /dev/null | cat + gh pr diff $PR --name-only | grep .php | xargs find 2> /dev/null | xargs vendor/bin/phpcs -nq --report=checkstyle | cs2pr + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR: ${{ github.event.pull_request.number }}