mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
ci: automated issue labeler (#8873)
* ci: automated issue labeler * ci: remove comment * Apply suggestions from code review Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> * ci: update labeler on new package * chore: add core * ci: add feature req too * fix: update date Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
This commit is contained in:
@@ -72,6 +72,13 @@ export async function createPackage(packageName: string, packageDescription?: st
|
||||
|
||||
await writeFile('labeler.yml', stringifyYAML(sortedLabelerYAML));
|
||||
|
||||
const issueLabelerYAML = parseYAML(await readFile('issue-labeler.yml', 'utf8')) as Record<string, string[]>;
|
||||
issueLabelerYAML[`packages:${packageName}`] = [
|
||||
`### Which package is this (bug report|feature request) for\\?\\n\\n${packageName}`,
|
||||
];
|
||||
|
||||
await writeFile('issue-labeler.yml', stringifyYAML(issueLabelerYAML));
|
||||
|
||||
// Move back to root
|
||||
chdir('..');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user