From 13bcaff245ebbcc970ecb38e8de839d637788c99 Mon Sep 17 00:00:00 2001 From: Dmytro Date: Wed, 28 Jun 2023 22:00:09 +0300 Subject: [PATCH 1/6] Release/1.3.5 (#785) (#786) * Product version bump update * Changelog update --- changelog.txt | 3 +++ package-lock.json | 2 +- package.json | 2 +- pinterest-for-woocommerce.php | 6 +++--- readme.txt | 5 ++++- src/FeedGenerator.php | 2 +- 6 files changed, 13 insertions(+), 7 deletions(-) diff --git a/changelog.txt b/changelog.txt index be43dd456..267e30331 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,8 @@ *** Pinterest for WooCommerce Changelog *** += 1.3.5 - 2023-06-28 = +* Tweak - WC 7.9 compatibility. + = 1.3.4 - 2023-06-21 = * Fix - Fixed error when getting transient for a key of null value. * Fix - Release 1.3.3 - merge trunk into develop. diff --git a/package-lock.json b/package-lock.json index 4b91391c8..42f473792 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "pinterest-for-woocommerce", - "version": "1.3.4", + "version": "1.3.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index d786ee451..961c4a14b 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "pinterest-for-woocommerce", "title": "Pinterest for WooCommerce", "description": "Pinterest for WooCommerce", - "version": "1.3.4", + "version": "1.3.5", "main": "gulpfile.js", "repository": { "type": "git", diff --git a/pinterest-for-woocommerce.php b/pinterest-for-woocommerce.php index 7fe1301ff..bcde6f062 100644 --- a/pinterest-for-woocommerce.php +++ b/pinterest-for-woocommerce.php @@ -13,7 +13,7 @@ * Plugin Name: Pinterest for WooCommerce * Plugin URI: https://woocommerce.com/products/pinterest-for-woocommerce/ * Description: Grow your business on Pinterest! Use this official plugin to allow shoppers to Pin products while browsing your store, track conversions, and advertise on Pinterest. - * Version: 1.3.4 + * Version: 1.3.5 * Author: WooCommerce * Author URI: https://woocommerce.com * License: GPL-2.0+ @@ -26,7 +26,7 @@ * Requires PHP: 7.3 * * WC requires at least: 5.3 - * WC tested up to: 7.8 + * WC tested up to: 7.9 */ /** @@ -46,7 +46,7 @@ } define( 'PINTEREST_FOR_WOOCOMMERCE_PLUGIN_FILE', __FILE__ ); -define( 'PINTEREST_FOR_WOOCOMMERCE_VERSION', '1.3.4' ); // WRCS: DEFINED_VERSION. +define( 'PINTEREST_FOR_WOOCOMMERCE_VERSION', '1.3.5' ); // WRCS: DEFINED_VERSION. // HPOS compatibility declaration. add_action( diff --git a/readme.txt b/readme.txt index ca7f7fbb8..cb9d76f79 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: woocommerce, pinterest, advertise Requires at least: 5.6 Tested up to: 6.2 Requires PHP: 7.3 -Stable tag: 1.3.4 +Stable tag: 1.3.5 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -87,6 +87,9 @@ Release and roadmap notes available on the [WooCommerce Developers Blog](hhttps: == Changelog == += 1.3.5 - 2023-06-28 = +* Tweak - WC 7.9 compatibility. + = 1.3.4 - 2023-06-21 = * Fix - Fixed error when getting transient for a key of null value. * Fix - Release 1.3.3 - merge trunk into develop. diff --git a/src/FeedGenerator.php b/src/FeedGenerator.php index 0b7c12c90..7bfeb7f7a 100644 --- a/src/FeedGenerator.php +++ b/src/FeedGenerator.php @@ -726,7 +726,7 @@ protected function is_timeout_error( array $error ): bool { * @throws Exception Related to max retries reached or missing arguments on the action. */ public function maybe_handle_error_on_timeout( int $action_id ) { - wc_deprecated_function( __METHOD__, 'x.x.x' ); + wc_deprecated_function( __METHOD__, '1.3.5' ); } /** From 9bcbb44b8adaf00e7a2fef11a9f729aecea4f605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20Wytr=C4=99bowicz?= Date: Mon, 17 Jul 2023 18:18:38 +0200 Subject: [PATCH 2/6] Add GH workflow for release PR & checklist --- .github/workflows/prepare-release.yml | 39 +++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/prepare-release.yml diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml new file mode 100644 index 000000000..cc3a2ac65 --- /dev/null +++ b/.github/workflows/prepare-release.yml @@ -0,0 +1,39 @@ +name: 'Prepare New Release' +run-name: Prepare New Release `${{ github.event.inputs.type }}/${{ github.event.inputs.version }}` from by @${{ github.actor }} + +# **What it does**: Does release preparation: creates the release branch and the PR with a checklist. +# **Why we have it**: To support devs automating a few manual steps, and to leave a nice reference for consumers. + +on: + workflow_dispatch: + inputs: + ## In the future we could infer that version from the changelog, or bump it via major|minor|patch. + version: + description: 'Version number to be released' + required: true + type: + description: 'Type of the release (release|hotfix)' + required: true + default: 'release' + wp-version: + description: 'WordPress tested up to' + wc-version: + description: 'WooCommerce tested up to' + + +jobs: + PrepareRelease: + name: Prepare Release + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Create branch & PR + uses: woocommerce/grow/prepare-extension-release@actions-v1 + with: + version: ${{ github.event.inputs.version }} + type: ${{ github.event.inputs.type }} + wp-version: ${{ github.event.inputs.wp-version }} + wc-version: ${{ github.event.inputs.wc-version }} + main-branch: 'trunk' From 6be3779ca87fff78f1e651be08f1d0529d0891d0 Mon Sep 17 00:00:00 2001 From: Bartosz Budzanowski Date: Tue, 25 Jul 2023 15:17:54 +0200 Subject: [PATCH 3/6] Revert "Remove Ads Campaign from readme.txt" --- readme.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/readme.txt b/readme.txt index cb9d76f79..7f8e8fe21 100644 --- a/readme.txt +++ b/readme.txt @@ -16,6 +16,10 @@ Pinterest gives people their next great idea. Part collection, part marketplace, With the Pinterest for WooCommerce extension, you can put your products in front of Pinterest users who are already looking for ideas and things to buy. Connect your WooCommerce store to your *[Pinterest business account](https://business.pinterest.com/)* directly in the WooCommerce app. Your entire catalog will become browsable on Pinterest in just a few clicks. += Pinterest Ads = + +Get started with Pinterest Ads with **$125 free ad credit\*** from Pinterest when you set up Pinterest for WooCommerce and spend $15 on ads! Pinterest *[terms and conditions](https://business.pinterest.com/en-us/business-terms-of-service/)* apply. + = Open-minded and undecided = People on Pinterest are eager for new ideas, which means they want to hear from you. In fact, 97% of top Pinterest searches are unbranded. Content from brands doesn’t interrupt on Pinterest—it inspires. Shopping features are built into both the organic Pinner experience, and our ad solutions. From f6065edbf52463c97540ba7c0caab7c53718c262 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 25 Jul 2023 14:17:15 +0000 Subject: [PATCH 4/6] Start `release/1.3.6`. From dd782f472364a5c5bbc42132beaf254f5a4ef499 Mon Sep 17 00:00:00 2001 From: Kruti Dugade Date: Tue, 25 Jul 2023 15:39:55 +0100 Subject: [PATCH 5/6] Product version bump update --- package-lock.json | 2 +- package.json | 2 +- pinterest-for-woocommerce.php | 4 ++-- readme.txt | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 42f473792..9c075c771 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "pinterest-for-woocommerce", - "version": "1.3.5", + "version": "1.3.6", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 961c4a14b..cda86840f 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "pinterest-for-woocommerce", "title": "Pinterest for WooCommerce", "description": "Pinterest for WooCommerce", - "version": "1.3.5", + "version": "1.3.6", "main": "gulpfile.js", "repository": { "type": "git", diff --git a/pinterest-for-woocommerce.php b/pinterest-for-woocommerce.php index bcde6f062..479979211 100644 --- a/pinterest-for-woocommerce.php +++ b/pinterest-for-woocommerce.php @@ -13,7 +13,7 @@ * Plugin Name: Pinterest for WooCommerce * Plugin URI: https://woocommerce.com/products/pinterest-for-woocommerce/ * Description: Grow your business on Pinterest! Use this official plugin to allow shoppers to Pin products while browsing your store, track conversions, and advertise on Pinterest. - * Version: 1.3.5 + * Version: 1.3.6 * Author: WooCommerce * Author URI: https://woocommerce.com * License: GPL-2.0+ @@ -46,7 +46,7 @@ } define( 'PINTEREST_FOR_WOOCOMMERCE_PLUGIN_FILE', __FILE__ ); -define( 'PINTEREST_FOR_WOOCOMMERCE_VERSION', '1.3.5' ); // WRCS: DEFINED_VERSION. +define( 'PINTEREST_FOR_WOOCOMMERCE_VERSION', '1.3.6' ); // WRCS: DEFINED_VERSION. // HPOS compatibility declaration. add_action( diff --git a/readme.txt b/readme.txt index 7f8e8fe21..f14438a88 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: woocommerce, pinterest, advertise Requires at least: 5.6 Tested up to: 6.2 Requires PHP: 7.3 -Stable tag: 1.3.5 +Stable tag: 1.3.6 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.html From fd7afe92e0195d4703cd32b1ccfe4b368e830576 Mon Sep 17 00:00:00 2001 From: Kruti Dugade Date: Tue, 25 Jul 2023 15:40:02 +0100 Subject: [PATCH 6/6] Changelog update --- changelog.txt | 3 +++ readme.txt | 3 +++ 2 files changed, 6 insertions(+) diff --git a/changelog.txt b/changelog.txt index 267e30331..f63367acd 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,8 @@ *** Pinterest for WooCommerce Changelog *** += 1.3.6 - 2023-07-25 = +* Dev - Add release preparation GH workflow. + = 1.3.5 - 2023-06-28 = * Tweak - WC 7.9 compatibility. diff --git a/readme.txt b/readme.txt index f14438a88..a58f15568 100644 --- a/readme.txt +++ b/readme.txt @@ -91,6 +91,9 @@ Release and roadmap notes available on the [WooCommerce Developers Blog](hhttps: == Changelog == += 1.3.6 - 2023-07-25 = +* Dev - Add release preparation GH workflow. + = 1.3.5 - 2023-06-28 = * Tweak - WC 7.9 compatibility.