/
githubmirror
/
tldraw
Обзор
Документация
Войти
/
githubmirror
/
tldraw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
internal/scripts/lib/labels.ts
44 строки
1 KB
alex
new extract draft changelog script (#6771)
14 окт 2025, 14:04
Не верифицирован
14 окт 2025, 14:04
65769c2
Код
Авторство
О чём код?
interface Label { // this is what the label is 'called' on github name: string // this is how we describe the label in our pull request template description: string // this is the section title for the label in our changelogs changelogTitle: string } const TYPE_LABELS = [ { name: `bugfix`, description: `Bug fix`, changelogTitle: '🐛 Bug Fixes' }, { name: `improvement`, description: `Product improvement`, changelogTitle: '💄 Product Improvements', }, { name: `feature`, description: `New feature`, changelogTitle: '🎉 New Features', }, { name: `api`, description: `API change`, changelogTitle: '🛠️ API Changes', }, { name: `other`, description: `Changes that don't affect SDK users, e.g. internal or .com changes`, changelogTitle: '🤷 Other', }, ] as const satisfies Label[] export function getLabelNames() { return [...TYPE_LABELS].map((label) => label.name) } function formatTemplateOption(label: Label) { return `- [ ] \`${label.name}\`` } export function formatLabelOptionsForPRTemplate() { return TYPE_LABELS.map(formatTemplateOption).join('\n') }