Github Issue Auto Fixer
Pricing
Pay per usage
Github Issue Auto Fixer
Github Issue Auto Fixer is an AI-powered GitHub assistant that automatically scans your repo, detects issues, and fixes them. It creates a new branch, submits a pull request, comments on the issue, and emails you for review — keeping your code clean and up to date effortlessly.
Pricing
Pay per usage
Rating
5.0
(3)
Developer

Ashutosh Sahoo
Actor stats
0
Bookmarked
1
Total users
0
Monthly active users
2 days ago
Last modified
Categories
Share
🤖 Automated GitHub Issue Fixer
An AI-powered Apify Actor that automatically monitors GitHub repositories, analyzes issues, creates fixes, generates pull requests, and sends email notifications.
✨ Features
- 🔍 Continuous Monitoring: Actively monitors your GitHub repository for new issues
- 🧠 AI-Powered Analysis: Uses Google Gemini AI to analyze issues and understand your codebase
- 🔧 Automatic Fixes: Generates code fixes based on issue descriptions and repository context
- 🌿 Branch Management: Creates dedicated branches for each fix
- 📝 Pull Request Creation: Automatically creates well-documented pull requests
- 📧 Email Notifications: Sends detailed email notifications about fixes and PRs
- 🔄 Auto-Merge Option: Optionally auto-merge PRs (use with caution!)
🚀 How It Works
- Issue Detection: The Actor continuously polls your GitHub repository for new issues
- Code Analysis: When a new issue is found, Gemini AI analyzes the issue description and relevant code files
- Fix Generation: AI generates appropriate code changes to fix the issue
- Branch Creation: Creates a new branch with a descriptive name (e.g.,
fix/issue-123) - Code Application: Applies the generated fixes to the codebase
- PR Creation: Creates a pull request with detailed explanation of the fix
- Notification: Sends an email notification with links to the issue and PR
- Optional Auto-Merge: If enabled, automatically merges the PR
📋 Prerequisites
Before using this Actor, you'll need:
-
GitHub Personal Access Token
- Go to GitHub Settings → Developer settings → Personal access tokens
- Create a token with
repo,workflow, anduser:emailpermissions
-
Google Gemini API Key
- Visit Google AI Studio
- Create an API key for Gemini
-
Email Account for Notifications
- SMTP server details (e.g., Gmail:
smtp.gmail.com:587) - Email address and password/app-specific password
- SMTP server details (e.g., Gmail:
⚙️ Configuration
Required Inputs
| Field | Description | Example |
|---|---|---|
githubRepoUrl | Full URL of the GitHub repository to monitor | https://github.com/username/repo |
githubToken | GitHub Personal Access Token | ghp_xxxxxxxxxxxx |
geminiApiKey | Google Gemini API Key | AIzaSyxxxxxxxxxx |
smtpServer | SMTP server address | smtp.gmail.com |
emailFrom | Email address to send from | bot@example.com |
emailPassword | Email password or app-specific password | xxxxxxxxxxxx |
notificationEmail | Email to receive notifications | developer@example.com |
Optional Inputs
| Field | Description | Default |
|---|---|---|
smtpPort | SMTP server port | 587 |
pollingIntervalMinutes | How often to check for new issues (1-60 minutes) | 5 |
autoMerge | Automatically merge PRs after creation | false |
maxIssuesPerRun | Maximum issues to process per iteration | 5 |
📖 Usage
On Apify Platform
- Go to the Actor page
- Click "Try for free"
- Fill in the required configuration
- Click "Start"
- The Actor will run continuously, monitoring for new issues
Local Development
# Install Apify CLInpm install -g apify-cli# Clone the Actorapify pull# Install dependencies (done via Docker)# No need to run pip install manually# Build the Docker imagedocker build -t github-issue-fixer .# Run locally with Dockerdocker run -it --rm \-e APIFY_INPUT_JSON='{"githubRepoUrl":"...","githubToken":"..."}' \github-issue-fixer# Or use Apify CLI (which uses Docker)apify run
🔒 Security Considerations
[!WARNING] Auto-Merge: The auto-merge feature should be used with extreme caution. It's recommended to keep this disabled and manually review PRs before merging.
[!IMPORTANT] API Keys: Keep your GitHub token, Gemini API key, and email credentials secure. Use Apify's secret input fields to store sensitive data.
[!TIP] Testing: Test the Actor on a non-critical repository first to ensure it works as expected.
📊 Output
The Actor saves the following data to the dataset for each processed issue:
{"timestamp": "2025-12-15T18:30:00.000Z","issue_number": 42,"issue_title": "Fix login bug","issue_url": "https://github.com/user/repo/issues/42","status": "success","iteration": 1}
🛠️ Technical Stack
- Python 3.13: Core language
- Apify SDK: Actor framework
- PyGithub: GitHub API integration
- Google Generative AI: Gemini AI for code analysis
- GitPython: Local git operations
- aiosmtplib: Async email sending
📝 Example Workflow
- A user creates an issue: "Fix the login button not working on mobile"
- The Actor detects the new issue within 5 minutes (default polling interval)
- Gemini AI analyzes the issue and relevant code files
- AI generates a fix (e.g., updating CSS for mobile responsiveness)
- Actor creates branch
fix/issue-42 - Applies the fix and commits with message: "Fix issue #42: Fix login button on mobile"
- Pushes to GitHub and creates PR
- Sends email to developer with links to issue and PR
- Developer reviews PR and merges if satisfied
🆘 Support
For issues or questions:
- Email: ashutoshsahoo556@gmail.com