An intelligent system that automatically generates insightful comments for code commits and sends notifications through Slack, powered by DeepSeek AI.
- 🔄 Real-time commit analysis
- 🤖 AI-powered code review comments
- 💬 Slack integration
- 🛡️ Robust error handling
- 💾 Efficient memory management
- 🔒 Secure API handling
- C Compiler (GCC recommended)
- Make
- libcurl
# Clone the repository
git clone https://github.com/ctkqiang/devbot.git
# Navigate to project directory
cd devbot
# Compile the project
gcc -Wall -Wextra -I. -o dev_bot main.c deepseek_api.c slack_api.c -lcurl
# Run the application
./dev_bot
Note: Make sure you have GCC and libcurl installed on your system:
For Ubuntu/Debian:
sudo apt-get install gcc libcurl4-openssl-dev
For macOS (using Homebrew):
brew install gcc curl
export OPENROUTER_API_KEY="your-api-key"
export SLACK_WEBHOOK_URL="your-webhook-url"
void handlePushEvent(const PushEvent* event) {
for (int i = 0; i < event->commitCount; i++) {
char* comment = generateComment(event->commits[i].message);
sendMessage(slackMessage);
}
}
-
HTTP Utilities
- Memory-safe callback mechanisms
- Dynamic buffer management
- Robust error handling
-
DeepSeek AI Integration
- Natural language processing
- Contextual code analysis
- Intelligent comment generation
-
Slack Integration
- Real-time notifications
- Webhook communication
- Message formatting
*response = realloc(*response, strlen(*response) + realsize + 1);
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
- Multiple AI model support
- Enhanced context awareness
- Additional platform integrations
- CI/CD pipeline integration
This project is licensed under the MIT License - see the LICENSE file for details.
If you find this project helpful and would like to support its continued development and maintenance, 🥰 I deeply appreciate your generosity. Your donation will help me continue to improve and add new features to this project. Through financial contributions, you'll help ensure this project remains free and open to everyone. Even a small donation can make a big impact and serves as personal encouragement.
You can scan the following Alipay QR codes to make a personal donation:
Made with ❤️ by 钟智强