mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 08:03:30 +01:00
fix: simplify file
This commit is contained in:
84
.github/labeler.yml
vendored
84
.github/labeler.yml
vendored
@@ -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/**/*
|
||||
|
||||
@@ -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<string, Record<string, Record<string, string[]>[]>[]>;
|
||||
const labelerYAML = parseYAML(content) as Record<string, Record<string, Record<string, string>[]>[]>;
|
||||
|
||||
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}/**/*` },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user