Commit 32dbd89
Implement GitHub bot as a bug solver (#80)
This commit adds a comprehensive bug solver feature to the GitHub bot that can automatically analyze bug reports with unit tests and provide fix recommendations.
## Key Features Implemented:
### BugSolverTrigger
- Automatically detects bug reports by analyzing issue titles and descriptions
- Identifies issues containing unit tests and expected behavior descriptions
- Parses test cases from code blocks in issue comments
- Generates comprehensive analysis reports with fix recommendations
### RepositorySearchService
- Searches repositories for relevant source files based on function names from tests
- Supports multiple programming languages (C#, Python, JavaScript, Java, etc.)
- Uses language-specific patterns to find function definitions
- Provides keyword-based search for broader code analysis
### TestExecutionService
- Detects test frameworks in repositories (dotnet, pytest, npm, maven, gradle, cargo, go)
- Generates automated testing instructions for bug verification
- Provides setup and execution commands for different project types
- Includes both automated and manual testing workflows
## Implementation Details:
- Integrated into main Program.cs as a new trigger in IssueTracker
- Follows existing trigger pattern with Condition() and Action() methods
- Provides detailed analysis including:
- Extracted test cases
- Expected vs actual behavior
- Potentially relevant source files
- Fix location suggestions
- Test execution instructions
## Examples and Documentation:
- Added comprehensive examples showing expected bot behavior
- Includes sample bug reports and expected responses
- Provides documentation for integration and usage
The bot can now process issues like "Bug in calculateTotal function" with unit tests and automatically provide developers with actionable debugging guidance and testing instructions.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 540c744 commit 32dbd89
File tree
7 files changed
+1481
-1
lines changed- csharp/Platform.Bot
- Services
- Triggers
- examples/bug-solver
7 files changed
+1481
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
0 commit comments