Skip to content

Commit

Permalink
Google Analytics: automatically label changes to package
Browse files Browse the repository at this point in the history
See #37137
  • Loading branch information
jeherve committed May 3, 2024
1 parent 7418ef5 commit 3c3362b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Auto-labeling: label changes to the Google Analytics package.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@ async function getLabelsToAdd( octokit, owner, repo, number, isDraft, isRevert )
keywords.add( '[Feature] SSO' );
}

// The Google Analytics feature nows lives in both a package and a Jetpack module.
const googleAnalytics = file.match( /^projects\/packages\/google-analytics\// );
if ( googleAnalytics !== null ) {
keywords.add( '[Feature] Google Analytics' );
}

// The WooCommerce Analytics feature now lives in both a package and a Jetpack module.
const wooCommerceAnalytics = file.match( /^projects\/packages\/woocommerce-analytics\// );
if ( wooCommerceAnalytics !== null ) {
Expand Down

0 comments on commit 3c3362b

Please sign in to comment.