Skip to content

Commit cc6d2f4

Browse files
committed
Merge release/6.0.0 into trunk
2 parents 445cb66 + 7e85812 commit cc6d2f4

File tree

227 files changed

+77102
-86706
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

227 files changed

+77102
-86706
lines changed

.github/workflows/create-pre-release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ jobs:
2323
steps:
2424
- name: "Checkout repository"
2525
uses: actions/checkout@v3
26-
with:
27-
ref: 'develop'
2826

2927
- name: "Set up repository"
3028
uses: ./.github/actions/setup-repo

.husky/post-merge

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,37 @@
1-
#!/bin/sh
1+
#!/usr/bin/env sh
22
. "$(dirname "$0")/_/husky.sh"
33

4+
# Load local env variables if present.
5+
if [[ -f "$(pwd)/local.env" ]]; then
6+
. "$(pwd)/local.env"
7+
fi
8+
49
# using `--no-install` just in case it's the first time a person is checking out the repo and doesn't have yarnhook installed
510
npx --no-install yarnhook
611

712
# make sure composer packages are installed and the autoload files are regenerated
813
composer install
14+
15+
DEV_TOOLS_PLUGIN_PATH=${LOCAL_WCPAY_DEV_TOOLS_PLUGIN_REPO_PATH:-"docker/wordpress/wp-content/plugins/woocommerce-payments-dev-tools"}
16+
if [ ! -d $DEV_TOOLS_PLUGIN_PATH ]; then
17+
echo
18+
echo "\033[33mCouldn't find the '$DEV_TOOLS_PLUGIN_PATH' directory. Skipping the auto-update for the WCPay Dev Tools plugin...\033[0m"
19+
else
20+
if [[ "$(cd $DEV_TOOLS_PLUGIN_PATH && git rev-parse --show-toplevel 2>/dev/null)" = "$(cd $DEV_TOOLS_PLUGIN_PATH && pwd)" ]]; then
21+
echo
22+
echo "\033[32mDetermining if there is an update for the WCPay Dev Tools plugin...\033[0m"
23+
24+
DEV_TOOLS_BRANCH=$(cd $DEV_TOOLS_PLUGIN_PATH && git branch --show-current)
25+
if [[ $DEV_TOOLS_BRANCH = "trunk" ]]; then
26+
echo " \033[32mThe current branch is trunk. Check if we are safe to pull from origin/trunk...\033[0m"
27+
if [[ `cd $DEV_TOOLS_PLUGIN_PATH && git status --porcelain` ]]; then
28+
echo "\033[33m There are uncommitted local changes on the WCPay Dev Tools repo. Skipping any attempt to update it.\033[0m"
29+
else
30+
echo " \033[32mPulling the latest changes from origin/trunk, if any...\033[0m"
31+
cd $DEV_TOOLS_PLUGIN_PATH && git pull
32+
fi
33+
else
34+
echo "\033[33m The WCPay Dev Tools local clone is not on the trunk branch. Skipping any attempt to update it.\033[0m"
35+
fi
36+
fi
37+
fi

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
legacy-peer-deps=true
22
engine-strict=true
3+
save-exact=true

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@ https://github.com/Automattic/woocommerce-payments/blob/trunk/docker/README.md
4343
Install the following plugins:
4444

4545
- WooCommerce
46+
- WCPay Dev Tools (clone or download [the GitHub repo](https://github.com/Automattic/woocommerce-payments-dev-tools))
47+
48+
### Optional local.env file
49+
50+
If you are using a custom local development setup (as opposed to the Docker-based one), you can create a `local.env` file to provide environment variables for our development scripts.
51+
52+
We currently support the following variables:
53+
54+
- `LOCAL_WCPAY_DEV_TOOLS_PLUGIN_REPO_PATH`: The path to your local WCPay Dev Tools plugin directory for auto-updates; it defaults to `docker/wordpress/wp-content/plugins/woocommerce-payments-dev-tools`.
4655

4756
## Test account setup
4857

assets/images/illustrations/manage.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/images/illustrations/multicurrency.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/images/illustrations/payments.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)