Files
Anil Maktala 2916647997 feat: add comprehensive GitHub issue automation system
- Add GitHub Actions workflows for issue triage, duplicate detection, and stale issue management
- Add AWS Bedrock integration for AI-powered issue classification and duplicate detection
- Add TypeScript scripts for issue automation including labeling, triaging, and closing workflows
- Add comprehensive documentation for setup, implementation, and testing procedures
- Add security fixes for prompt injection vulnerabilities in AI model interactions
- Add local testing framework with Jest configuration and test utilities
- Add rate limiting and retry utilities for GitHub API and AWS Bedrock calls
- Add environment configuration examples and ESLint setup for TypeScript scripts
- Add detailed testing results and completion status documentation
- Implement automated duplicate detection using semantic similarity analysis
- Implement stale issue closing with configurable timelines and grace periods
- Implement issue classification and auto-labeling based on content analysis
2026-01-14 12:25:29 -05:00

100 lines
1.9 KiB
TypeScript

/**
* Data models for GitHub issue automation system
*/
export interface ClassificationResult {
recommended_labels: string[];
confidence_scores: Record<string, number>;
reasoning: string;
error?: string;
}
export interface DuplicateMatch {
issue_number: number;
issue_title: string;
similarity_score: number;
reasoning: string;
url: string;
}
export class LabelTaxonomy {
feature_component: string[] = [
"auth",
"autocomplete",
"chat",
"cli",
"extensions",
"hooks",
"ide",
"mcp",
"models",
"powers",
"specs",
"ssh",
"steering",
"sub-agents",
"terminal",
"ui",
"usability",
"trusted-commands",
"pricing",
"documentation",
"dependencies",
"compaction",
];
os_specific: string[] = ["os: linux", "os: mac", "os: windows"];
theme: string[] = [
"theme:account",
"theme:agent-latency",
"theme:agent-quality",
"theme:context-limit-issue",
"theme:ide-performance",
"theme:slow-unresponsive",
"theme:ssh-wsl",
"theme:unexpected-error",
];
workflow: string[] = [
"pending-maintainer-response",
"pending-response",
"pending-triage",
"duplicate",
"question",
];
special: string[] = ["Autonomous agent", "Inline chat", "on boarding"];
toDict(): Record<string, string[]> {
return {
feature_component: this.feature_component,
os_specific: this.os_specific,
theme: this.theme,
workflow: this.workflow,
special: this.special,
};
}
getAllLabels(): string[] {
return [
...this.feature_component,
...this.os_specific,
...this.theme,
...this.workflow,
...this.special,
];
}
}
export interface IssueData {
number: number;
title: string;
body: string;
created_at: Date;
updated_at: Date;
labels: string[];
url: string;
state: string;
}