Skip to content

Commit ea14125

Browse files
committed
change reference to monorepo
1 parent 15f26ee commit ea14125

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/changelogger/Formatter.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ public function getReleaseLink( $version ) {
7272
'plugins/woocommerce' => 'https://github.com/woocommerce/woocommerce/releases/tag/',
7373
);
7474

75-
// Catpure anything past /woocommerce-monorepo in the current working directory.
76-
preg_match( '/\/woocommerce-monorepo\/(.+)/', getcwd(), $path );
75+
// Catpure anything past /woocommerce in the current working directory.
76+
preg_match( '/\/woocommerce\/(.+)/', getcwd(), $path );
7777

7878
if ( ! count( $path ) ) {
7979
throw new InvalidArgumentException( 'Invalid directory.' );
@@ -234,6 +234,7 @@ public function format( Changelog $changelog ) {
234234
$version = $entry->getVersion();
235235
$is_subentry = preg_match( $this->subentry_pattern, $version, $subentry );
236236
$timestamp = $entry->getTimestamp();
237+
error_log(print_r($version, true));
237238
$release_link = $this->getReleaseLink( $version );
238239

239240
if ( $is_subentry ) {

0 commit comments

Comments
 (0)