pr-agent icon indicating copy to clipboard operation
pr-agent copied to clipboard

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

Open KalleV opened this issue 1 year ago • 6 comments

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

KalleV avatar Jul 16 '23 14:07 KalleV

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

okotek avatar Jul 16 '23 23:07 okotek

@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

wwzeng1 avatar Jul 18 '23 00:07 wwzeng1

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

esauser avatar Jul 29 '23 03:07 esauser

@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.

KalleV avatar Aug 05 '23 14:08 KalleV

@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

coditamar avatar Aug 05 '23 17:08 coditamar

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

wwzeng1 avatar Aug 05 '23 18:08 wwzeng1