Skip to content

Commit 83edb90

Browse files
authored
Repo Gardening: Fix Boost feature tagging (#35947)
* Fix github labels for boost features * changelog
1 parent 49aa706 commit 83edb90

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: fixed
3+
4+
Boost: Fix [Boost Feature] labels

projects/github-actions/repo-gardening/src/tasks/add-labels/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@ async function getLabelsToAdd( octokit, owner, repo, number, isDraft, isRevert )
210210
keywords.add( `[mu wpcom Feature] ${ cleanName( muWpcomFeatureName ) }` );
211211
}
212212

213-
// Boost Critical CSS.
213+
// Boost Features
214214
const boostModules = file.match(
215-
/^projects\/plugins\/boost\/app\/(?:modules|features)\/(?<boostModule>[^/]*)\//
215+
/^projects\/plugins\/boost\/app\/(?:modules|features)\/(?:optimizations\/)?(?<boostModule>[^/]*)\//
216216
);
217217
const boostModuleName = boostModules && boostModules.groups.boostModule;
218218
if ( boostModuleName ) {

0 commit comments

Comments
 (0)