Codium-ai / pr-agent

🚀CodiumAI PR-Agent: An AI-Powered 🤖 Tool for Automated Pull Request Analysis, Feedback, Suggestions and More! 💻🔍
Apache License 2.0
5.74k stars 534 forks source link

Feature Request / Idea: PR reviews that can use JIRA tickets as context #64

Open KalleV opened 1 year ago

KalleV commented 1 year ago

Thanks for publishing this tool. It's very fun to try! The PR descriptions and summaries are impressive.

Feature idea

I was curious about the possibility of including the original project-tracking ticket in the context of the reviews. That could open up an even more accurate AI-generated review that could evaluate whether the changes meet the ticket's requirements.

Possible implementation

For JIRA, I was picturing a system that looks for configured project ID(s) in the commits (i.e. MYPROJ) and then performs a GET request to retrieve relevant fields to augment the context.

References

Roadmap item:

Add additional context to the prompt. For example, repo (or relevant files) summarization, with tools such a ctags

okotek commented 1 year ago

Thanks for the idea! Maybe as a first step we can peek into associated GitHub issues and GitHub project tickets. Cc @mrT23 @hussam789 @DedyKredo

wwzeng1 commented 1 year ago

@KalleV @okotek Happy to help with this using Sweep, our bot that writes PRs from Github Issues. let me know if you'd like to install it at https://github.com/sweepai/sweep/blob/main/README.md#-getting-started

esauser commented 1 year ago

Similar to this, we use Azure DevOps and always link the tickets. Could pull the same context from there.

KalleV commented 1 year ago

@KalleV @okotek Happy to help with this using Sweep, our bot that writes PRs from Github Issues. let me know if you'd like to install it at sweepai/sweep@main/README.md#-getting-started

@wwzeng1 Wow, the interaction between Sweep + PR Agent has some amazing potential. There's some accuracy issues but it's awesome to see PR Agent auto-review a PR submitted by Sweep, and then Sweep automatically tries to address the PR feedback.

coditamar commented 1 year ago

@KalleV @okotek Happy to help with this using Sweep, our bot that writes PRs from Github Issues. let me know if you'd like to install it at https://github.com/sweepai/sweep/blob/main/README.md#-getting-started

sweep license could be an issue https://github.com/sweepai/sweep/blob/main/LICENSE

wwzeng1 commented 1 year ago

We have a ToS available, but no worries! We can just use Sweep directly instead of building this into Codium