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

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/12122473767

Upstream-Ref: Automattic/jetpack@fc4c584
  • Loading branch information
jeherve authored and matticbot committed Dec 2, 2024
1 parent 0b91e3a commit 33908cd
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ This is an alpha version! The changes listed here are not final.
- Board Triage: remove updateBoard task. It will now be part of the existing triageIssues task.
- Check description task: Update timing for Jetpack, wpcomsh, and mu-wpcom-plugin releases.
- Issue escalation: allow escalating the issue to multiple teams.
- Labeling: automatically label changes to the External Media extension.
- Labels: automatically label all changes to the Publicize feature.
- Prompt for labels: update wording.
- Slack messaging: when a Slack message cannot be sent to a specific channel, send a message to warn about the issue.
Expand Down
8 changes: 8 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48604,6 +48604,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
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions src/tasks/add-labels/index.js
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 33908cd

Please sign in to comment.