Skip to content

Commit

Permalink
Repo Gardening: handle External Media extension (#40408)
Browse files Browse the repository at this point in the history
This should allow automatically labeling PRs like #40382
  • Loading branch information
jeherve authored Dec 2, 2024
1 parent c0c084c commit fc4c584
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Labeling: automatically label changes to the External Media extension.
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,14 @@ async function getLabelsToAdd( octokit, owner, repo, number, isDraft, isRevert )
}
}

// External Media extension.
const externalMedia = file.match(
/^projects\/plugins\/jetpack\/extensions\/shared\/external-media\//
);
if ( externalMedia !== null ) {
keywords.add( '[Extension] External Media' );
}

// React Dashboard and Boost Admin.
const reactAdmin = file.match(
/^(projects\/plugins\/(crm|boost\/app)\/admin|projects\/plugins\/jetpack\/_inc\/client)\//
Expand Down

0 comments on commit fc4c584

Please sign in to comment.