woocommerce/tools/cherry-pick
Sam Seay 04b74c1053
Upgrade to pnpm 7 (#34661)
* Remove -- -- from scripts that fixed issue in pnpm 6, fix a couple TS issues in sep packages
* Minor fixes to analyzer scripts and doco based on pnpm 7
* Add dompurify types to data package to avoid TS errors
* Remove pnpx in favor of pnpm exec
* Modify the code analyzer to respect pnpm version if present.
* Update instructions for running recursive lint, add comments to explain
2022-09-16 09:21:42 +12:00
..
bin Cherry-Pick Tool: Fix stderr output (#34132) 2022-08-03 06:54:41 +12:00
README.md Add cherry pick tool (#33870) 2022-07-14 07:36:15 -07:00
package.json Upgrade to pnpm 7 (#34661) 2022-09-16 09:21:42 +12:00

README.md

Cherry Pick

A tool to automate cherry picking fixes into a release.

Prerequisite

You will need to set two environment variable:

  • GITHUB_CHERRY_PICK_TOKEN - Generate a personal access token from GitHub and make sure it has the Repo scope. Assign this token to the environment variable.
  • GITHUB_REMOTE_URL - Depending on if you use https or ssh when you use git clone. Set the value https or ssh to that environment variable.

Usage

Usage: pnpm cherry-pick <release_branch> <pull_request_number>. Separate pull request numbers with a comma (no space) if more than one.