/** * Issue template types and registry for stack-feedback skill */ export interface IssueTemplate { type: string; labels: string[]; titlePrefix: string; bodyTemplate: string; requiredFields: string[]; optionalFields: string[]; } export interface TemplateFields { [key: string]: string | undefined; } // Import all templates import bug from "./bug.json"; import enhancement from "./enhancement.json"; import docs from "./docs.json"; import unclearPattern from "./unclear-pattern.json"; import dx from "./dx.json"; import migrationPattern from "./migration-pattern.json"; import conversionHelper from "./conversion-helper.json"; import compatibility from "./compatibility.json"; import migrationDocs from "./migration-docs.json"; export const templates: Record = { bug, enhancement, docs, "unclear-pattern": unclearPattern, dx, "migration-pattern": migrationPattern, "conversion-helper": conversionHelper, compatibility, "migration-docs": migrationDocs, }; export const templateTypes = Object.keys(templates);