Skip to content

Commit

Permalink
ci: add calcite-ui-icons label to relevant package PRs (#10590)
Browse files Browse the repository at this point in the history
## Summary

Add a `calcite-ui-icons` label to pull requests that only change files
in `packages/calcite-ui-icons`. Requested by @arowles.
  • Loading branch information
benelan authored Oct 23, 2024
1 parent 69fa13e commit 2917d42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/scripts/iconTeamDiffCheck.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const {
teams: { admins, iconDesigners },
labels: { snapshots },
packages,
} = require("./support/resources");

/** @param {import('github-script').AsyncFunctionArguments} AsyncFunctionArguments */
Expand Down Expand Up @@ -81,8 +82,9 @@ module.exports = async ({ github, context, core }) => {
owner,
repo,
issue_number: pull_number,
labels: [snapshots.skip],
labels: [snapshots.skip, packages.icons],
});

core.setFailed(
`An admin needs to review these changes because a file outside of package/calcite-ui-icons was changed.`,
);
Expand Down
3 changes: 3 additions & 0 deletions .github/scripts/support/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ const resources = {
admins: "calcite-design-system-admins",
iconDesigners: "calcite-icon-designers",
},
packages: {
icons: "calcite-ui-icons",
},
};

module.exports = resources;

0 comments on commit 2917d42

Please sign in to comment.