-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically update the local WCPay Dev Tools clone to use the latest on trunk #6312
Automatically update the local WCPay Dev Tools clone to use the latest on trunk #6312
Conversation
…ools when on trunk
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Size Change: 0 B Total Size: 1.1 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome, nice work @vladolaru! Tested and it works perfectly as described in the instructions.
One small note - this probably wouldn't work for the folks who don't use Docker like @ismaeldcom - it may be worth either allowing the DEV_TOOLS_PATH
to be configurable (without tracking the change, for example having it in a local config file) with the default value being the Docker path, so they can point it at their local dev tools path if needed.
Approving the PR, feel free to once you take a look at that small detail!
Thank you, @dmallory42! I added support for |
Fixes #6311
Changes proposed in this Pull Request
We upgrade the Husky
post-merge
andpost-checkout
hooks to automatically pull the latest trunk changes on the local WCPay Dev Tools clone.To keep the behavior safe, this will only happen if:
trunk
branchHere are some screenshots of the command line messaging when doing a
git checkout
on the local WCPay client:Testing instructions
git fetch && git checkout dev/6311-automatically-update-wcpay-dev-tools
cd docker/wordpress/wp-content/plugins/woocommerce-payments-dev-tools && git checkout trunk && git pull
git checkout
; after the composer messaging, you should see messaging around attempting to update for the WCPay Dev Tools plugin; the final line should say "Already up to date."git checkout
; after the composer messaging, you should see messaging around attempting to update for the WCPay Dev Tools plugin; the final line should say: "There are uncommitted local changes on the WCPay Dev Tools repo. Skipping any attempt to update it.";trunk
(for exampleupdate/reorganize-cleanup-document-dev-tools-options
)git checkout
; after the composer messaging, you should see messaging around attempting to update for the WCPay Dev Tools plugin; the final line should say: "The WCPay Dev Tools local clone is not on the trunk branch. Skipping any attempt to update it.";git reset --hard 700b195cad544bdbf52f5139dd427aada05a9bdd
)git checkout
; after the composer messaging, you should see messaging around attempting to update for the WCPay Dev Tools plugin; the final lines should be git's messaging around updating and fast-forwarding;npm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge