Commit Graph

287 Commits

Author SHA1 Message Date
Paul Sealock be15a35038
Analyzer CLI: Add other schemas to scan (#33220)
* Add schema

* update to new filepath

* test

* Revert "test"

This reverts commit d05a731a46.

* remove unused import

* add products and orders scanning

* escape slashes

* save

* save

* save

* test

* save

* save

* better descriptions

* moar tests

* Revert "moar tests"

This reverts commit ad552db45b.

* remove test

* better doc blocks

* check port first

* stop wp-env after operation is done

* remove ProductAttributesLookup
2022-06-08 15:11:55 +12:00
Chi-Hsuan Huang b28d0c2254
Add missing dependencies & include @wordpress/components style for storybook (#33225)
* Add url-loader & copy-webpack-plugin to root package.json for storybook commands

* Update storybook config to include @wordpress/components style
2022-05-30 15:20:08 +08:00
Paul Sealock 37905dd178
Analyzer CLI: Add Database scanning (#33084) 2022-05-27 07:52:39 +12:00
Paul Sealock 4bfecbf42a
Declare create-extension script dependencies (#33169) 2022-05-26 09:07:19 +12:00
Paul Sealock 5de604e490
Add schema (#33095) 2022-05-20 11:08:51 +12:00
Paul Sealock 373ad382b5
Analyzer CLI: Refactor main file (#33081) 2022-05-20 10:02:40 +12:00
Claudio Sanches 2f4f8277bf
CLI tool and GH workflow to highlight PR changes (#32063) 2022-05-17 13:47:17 +12:00
Christopher Allford 37ad4c5a70 Converted Spaces To Tabs In JSON
Since we almost universally use tabs instead
of spaces, this commit replaces all of the spaces
with tabs in various JSON files across the monorepo.
2022-05-10 13:31:01 -07:00
Paul Sealock 635e3f6449
PR Template: Remove suggestion to use affected for changelogs (#32890)
* Remove suggestion to use affected for changelogs

* Update message in changelogger validation
2022-05-11 07:49:23 +12:00
Christopher Allford fc56455e47 Fixed Monorepo Merge Build
By default, TypeScript looks for type roots in
parent node_modules directories. We can't
do this because there are React types
that cause errors. This commit explicitly
defines the type roots for the package to avoid
that behavior.
2022-05-06 13:06:22 -07:00
Paul Sealock 6100df9a04
Storybook: Move code to `tools/` (#32729) 2022-04-28 09:54:54 +12:00
Paul Sealock e70b75cf81
Update `create-extension` to work in monorepo context (#32514)
* Update create-wc-extension to work in monorepo context

* update lock file
2022-04-26 08:51:35 +12:00
jonathansadowski 90a545b013
Merge pull request #32450 from woocommerce/add/changelogger-validation
Add changelogger validation.
2022-04-05 14:11:33 -05:00
Jonathan Sadowski b997f18dd8 Add newline to EOF 2022-04-01 13:12:16 -05:00
Jonathan Sadowski b244db0e44 Update arguments parsing to use getopt, and add path option 2022-04-01 12:43:18 -05:00
RJChow 6f23a5ae68 Introduce codemod for changing i18n text domain 2022-04-01 11:41:32 +08:00
Jonathan Sadowski 2c4e373192 Fix github action and correct error in detecting change file 2022-03-31 21:53:12 -05:00
Jonathan Sadowski 843d981198 Adapt check-changelogger-use from Jetpack for usage in WooCommerce monorepo 2022-03-31 20:42:54 -05:00
Christopher Allford 9287018d86 Expanded Issue Transfer Error Messaging
Rather than discarding the error message when
the issue transfer fails, we should give it in the
console so that the user can correct it.
2022-03-18 11:24:27 -07:00
Christopher Allford a55dfeed34 Implemented Issue Transfer
This commit adds the remaining functionality to
transfer issues between repositories.
2022-03-17 14:51:58 -07:00
Christopher Allford 275f080e66 Refactored Transfer Issue Command
This commit cleans up the command now that I'm
generally happy with the implementation. It should
be much easier to follow now, as well as follow
GitHub's GraphQL best-practices around sanitation.
2022-03-17 13:36:10 -07:00
Christopher Allford 59fe574947 Added Better Action Handling To Merge Command
This commit cleans up some of the action stop
handling in the merge command. I was adding
this handling to the issue transfer command and
saw the same mistakes made here.
2022-03-17 13:35:30 -07:00
Christopher Allford 1519eeac81 Added Label Flag
This commit adds a flag that enables the command to check
for labels that should be added to the issues after they
are transferred into the monorepo.
2022-03-16 23:29:17 -07:00
Christopher Allford 831a895db3 Applied Linting 2022-03-16 23:05:50 -07:00
Christopher Allford 57ab538668 Added Issue Transfer Command Skeleton
This commit adds the skeleton for an issue transfer command.
Almost all of the functionality is implemented, but it is missing
the actual transfer of issues. I'm nervous about testing this, so
I'm going to implement the rest of the functionality first.
2022-03-16 22:53:30 -07:00
Christopher Allford 8bb027279a Addressed PR Feedback 2022-02-28 09:43:16 -08:00
Christopher Allford cd9aad9a3d Added Merge Command
This adds a command that is able to merge any
repository into the monorepo.
2022-02-28 09:43:16 -08:00
Christopher Allford ed77233fb4 Added monorepo-merge Tool Scaffolding
This contains the basic framework for our new `monorepo-merge`
command. The goal will be for this command to handle the heavy lifting
for merging repositories with full history. It will (ideally) bring any
plugin or package into the repository in a ready-to-use state.
2022-02-28 09:43:02 -08:00
Paul Sealock eb453cce20
Add NX commands for Jetpack Changelogger (#31166) 2021-12-15 14:14:17 +13:00
Roy Ho 9e744e4029
Merge pull request #31312 from woocommerce/fix/formatter
Fix PHP Fatal error in Changelogger Formatter class
2021-11-29 07:28:34 -08:00
Claudio Sanches a8060e34d3 Fixed global namespace of DateTime and DateTimeZone
Fixes a PHP Fatal error:

```
PHP Fatal error:  Uncaught Error: Class 'Automattic\WooCommerce\MonorepoTools\Changelogger\DateTime' not found in /var/www/woo/wp-content/plugins/woocommerce/tools/changelogger/Formatter.php:143
```
2021-11-26 13:25:43 -03:00
Claudio Sanches 16b35ae2ab Removed leftovers from some debugging 2021-11-26 13:23:52 -03:00
Paul Sealock 31bda7a765 use significance instead of definition 2021-11-16 15:16:20 +13:00
Christopher Allford c91dda177d
Fix E2E Tests (#31205)
* Removed Changlogger Autoload

* Changed Jetpack Changelogger Formatter Loading

Rather than using the Composer autoload, we should use the
changelogger's "filename" option to point directly at the file.
This keeps the file out of the autoloads, since it's possible that
plugins or packages may be symlinked and break the relative
path to the plugin.
2021-11-16 15:01:50 +13:00
Paul Sealock ea14125d03 change reference to monorepo 2021-11-11 17:23:47 +13:00
Paul Sealock a5abab9ab0 Add Jetpack Changelogger 2021-11-11 16:28:10 +13:00
Paul Sealock ef015f740f git mv a few folders 2021-10-19 10:35:45 +13:00