All-Hands-AI / OpenHands

🙌 OpenHands: Code Less, Make More
https://all-hands.dev
MIT License
37.36k stars 4.23k forks source link

Feature: PR Review #5219

Open enyst opened 2 days ago

enyst commented 2 days ago

What problem or use case are you trying to solve? OpenHands has a resolver module which resolves GitHub issues, writes comments and reads comments, creates branches, commits and PRs.

We want to add to it a PR review functionality.

Describe the UX of the solution you'd like

When a PR is labeled with "review-pr", a github job to review the PR will be executed.

Implementation

Once you're done and understand the existing code, lets implement the new functionality of the resolver:

For this feature implementation, you also need to:

IMPORTANT We work on python 3.12, and so you can use builtin list, dict, | None, not the older variants. Do NOT delete comments from the existing code. Keep the new code you write aligned with the way existing code is written, style, comments, and patterns, otherwise it triggers my ocd.

github-actions[bot] commented 2 days ago

OpenHands started fixing the issue! You can monitor the progress here.

github-actions[bot] commented 2 days ago

An attempt was made to automatically fix this issue, but it was unsuccessful. A branch named 'openhands-fix-issue-5219' has been created with the attempted changes. You can view the branch here. Manual intervention may be required.

github-actions[bot] commented 1 day ago

OpenHands started fixing the issue! You can monitor the progress here.

github-actions[bot] commented 1 day ago

An attempt was made to automatically fix this issue, but it was unsuccessful. A branch named 'openhands-fix-issue-5219-try2' has been created with the attempted changes. You can view the branch here. Manual intervention may be required.