From 9456702aed136976af757d97b6358b5b25b20318 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Sat, 6 Sep 2025 23:40:37 +0100 Subject: [PATCH] fix: simplify file --- .github/labeler.yml | 84 ++++++--------------- packages/scripts/turbo/generators/config.ts | 4 +- 2 files changed, 23 insertions(+), 65 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 1096b941f..c909bb7e9 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,105 +1,63 @@ a:api-extractor: - changed-files: - - any-glob-to-any-file: - - packages/api-extractor/* - - packages/api-extractor/**/* + - any-glob-to-any-file: packages/api-extractor/**/* a:api-extractor-model: - changed-files: - - any-glob-to-any-file: - - packages/api-extractor-model/* - - packages/api-extractor-model/**/* + - any-glob-to-any-file: packages/api-extractor-model/**/* a:brokers: - changed-files: - - any-glob-to-any-file: - - packages/brokers/* - - packages/brokers/**/* + - any-glob-to-any-file: packages/brokers/**/* a:builders: - changed-files: - - any-glob-to-any-file: - - packages/builders/* - - packages/builders/**/* + - any-glob-to-any-file: packages/builders/**/* a:collection: - changed-files: - - any-glob-to-any-file: - - packages/collection/* - - packages/collection/**/* + - any-glob-to-any-file: packages/collection/**/* a:core: - changed-files: - - any-glob-to-any-file: - - packages/core/* - - packages/core/**/* + - any-glob-to-any-file: packages/core/**/* a:create-discord-bot: - changed-files: - - any-glob-to-any-file: - - packages/create-discord-bot/* - - packages/create-discord-bot/**/* + - any-glob-to-any-file: packages/create-discord-bot/**/* a:discord.js: - changed-files: - - any-glob-to-any-file: - - packages/discord.js/* - - packages/discord.js/**/* + - any-glob-to-any-file: packages/discord.js/**/* a:docgen: - changed-files: - - any-glob-to-any-file: - - packages/docgen/* - - packages/docgen/**/* + - any-glob-to-any-file: packages/docgen/**/* a:formatters: - changed-files: - - any-glob-to-any-file: - - packages/formatters/* - - packages/formatters/**/* + - any-glob-to-any-file: packages/formatters/**/* a:guide: - changed-files: - - any-glob-to-any-file: - - apps/guide/* - - apps/guide/**/* + - any-glob-to-any-file: apps/guide/**/* a:next: - changed-files: - - any-glob-to-any-file: - - packages/next/* - - packages/next/**/* + - any-glob-to-any-file: packages/next/**/* a:proxy: - changed-files: - - any-glob-to-any-file: - - packages/proxy/* - - packages/proxy/**/* + - any-glob-to-any-file: packages/proxy/**/* a:proxy-container: - changed-files: - - any-glob-to-any-file: - - packages/proxy-container/* - - packages/proxy-container/**/* + - any-glob-to-any-file: packages/proxy-container/**/* a:rest: - changed-files: - - any-glob-to-any-file: - - packages/rest/* - - packages/rest/**/* + - any-glob-to-any-file: packages/rest/**/* a:structures: - changed-files: - - any-glob-to-any-file: - - packages/structures/* - - packages/structures/**/* + - any-glob-to-any-file: packages/structures/**/* a:ui: - changed-files: - - any-glob-to-any-file: - - packages/ui/* - - packages/ui/**/* + - any-glob-to-any-file: packages/ui/**/* a:util: - changed-files: - - any-glob-to-any-file: - - packages/util/* - - packages/util/**/* + - any-glob-to-any-file: packages/util/**/* a:voice: - changed-files: - - any-glob-to-any-file: - - packages/voice/* - - packages/voice/**/* + - any-glob-to-any-file: packages/voice/**/* a:website: - changed-files: - - any-glob-to-any-file: - - apps/website/* - - apps/website/**/* + - any-glob-to-any-file: apps/website/**/* a:ws: - changed-files: - - any-glob-to-any-file: - - packages/ws/* - - packages/ws/**/* + - any-glob-to-any-file: packages/ws/**/* diff --git a/packages/scripts/turbo/generators/config.ts b/packages/scripts/turbo/generators/config.ts index 055dfde19..69398faa5 100644 --- a/packages/scripts/turbo/generators/config.ts +++ b/packages/scripts/turbo/generators/config.ts @@ -71,12 +71,12 @@ export default function generator(plop: PlopTypes.NodePlopAPI): void { type: 'modify', path: `${plop.getDestBasePath()}/../../.github/labeler.yml`, transform(content, answers) { - const labelerYAML = parseYAML(content) as Record[]>[]>; + const labelerYAML = parseYAML(content) as Record[]>[]>; labelerYAML[`packages:${answers.name}`] = [ { 'changed-files': [ - { 'any-glob-to-any-file': [`packages/${answers.name}/*`, `packages/${answers.name}/**/*`] }, + { 'any-glob-to-any-file': `packages/${answers.name}/**/*` }, ], }, ];