AI-powered PR comment implementation with auto-branch creation and local testing workflow
Here's my dream AI agentic feature for GitLab:
When a teammate leaves a code review comment on my MR (like "extract this logic into a shared service" or "add error handling here"), I'd love for GitLab's AI to:
- Analyze the comment in context - understand the suggested change based on the code diff and conversation thread
- Generate the actual code changes - implement the suggestion right there in the code
- Present the diff to me for approval - show me exactly what would change before any commits happen
- Create a branch with my approval - automatically branch from my current MR with the changes applied
- Give me a ready-to-paste git command - so I can pull and test it locally in lower environments before merging for testing purposes.
This would be INSANE because:
- The feedback loop becomes instantaneous
- It keeps the conversation in GitLab instead of me copying code to/from external LLMs
- I maintain control by reviewing the diff and testing locally
- The branch approach means I can verify it actually works in dev/staging
This feels uniquely GitLab's territory to solve - deep integration with the MR workflow, permissions, and the actual codebase context. External tools can't do this seamlessly.
Edited by aziz s