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:
Parbez
2023-01-13 15:58:14 +05:30
committed by GitHub
parent 1831acaffb
commit 8c265b628d
3 changed files with 42 additions and 0 deletions

View File

@@ -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('..');