In today's tech world, AI's role is clear. We've faced challenges in explaining code changes to teammates unfamiliar with certain aspects or realizing some parts of our code could be better. These moments showed us how AI can make code reviews easier.
We improved this process for our team and are excited to share it with other developers, and also submit our work to Codegeist Unleashed 2023, as a great opportunity to share our app with a broader audience.
What It Does π οΈ
It allows you to ask questions related to your Pull Request to an AI that knows all about its context (commits, code changes, etc). The key value is you do not need to provide context explicitly, it already knows! This great assistant is not just about explaining code modifications but also suggests code enhancements and scans for potential vulnerabilities.
1. Ask AI Buddy to improve the code in your Pull Request, and it will help you immediately.
2. You can configure your OpenAI mode to use, and even customize the promt that is being sent.
3. Additionally, you can use the Chat feature to ask your questions to the AI without creating PR comments that everybody can see.
How We Built It ποΈ
Our fondness for Scala inspired us to craft our app using ScalaJS for Forge. The entirety of our appβs source, both the backend and the CustomUI frontend, is developed in Scala. This code is then transpiled into JavaScript for Forge's consumption.
However, our journey wasn't without its challenges:
Challenges we ran into π§
Transferring the context to the AI, ensuring it brings an actual value added to a Pull Request, was arguably our most significant challenge. That challenge was 2-fold:
Accomplishments We're Proud Of π
One of our crowning achievements is the inline comments feature. The AI recognizes your exact location in the code, offering precise insights. This proves invaluable when grappling with intricate code segments.
What We Learned π
The AI's prowess in dissecting complex code and suggesting refactors was a revelation. Our initial testing phase yielded astoundingly relevant responses, fostering our belief that users will mirror our sentiments. However, a word of caution: while the AI's feedback on code security is often beneficial, it should be viewed critically and not as a replacement for established static code analysis tools.
What's Next for Mibex π
We will be adding this feature to one of our existing apps - Code Review Assistant. We invite you to explore its capabilities for your Data Center repositories. And stay tuned for our upcoming PR automation projects!
Ilona_Mibex Software
Product Marketing Manager - Mibex Software
Mibex Software
Zurich
0 comments