sweepai / sweep

Sweep: open-source AI-powered Software Developer for small features and bug fixes.
https://sweep.dev
Other
7.43k stars 425 forks source link

Sweep: Define is_python_issue in on_comment #1911

Open lukejagg opened 1 year ago

lukejagg commented 1 year ago

Details

is_python_issue was originally defined in sweep_bot, but it was moved to on_ticket. However, on_comment also called sweep_bot, so we need to define is_python_issue in on_comment as well. Copy the code from on_ticket and add it to on_comment in the appropriate place.

Checklist - [X] `sweepai/handlers/on_comment.py` ❌ Failed
sweep-nightly[bot] commented 1 year ago
Sweeping

50%

Actions (click)


❌ Unable to Complete PR

I'm sorry, but it looks like an error has occurred. Try changing the issue description to re-trigger Sweep. If this error persists report it at https://discord.gg/sweep.

For bonus GPT-4 tickets, please report this bug on Discord.


Please look at the generated plan. If something looks wrong, please add more details to your issue.

File Path Proposed Changes
sweepai/handlers/on_comment.py Modify sweepai/handlers/on_comment.py with contents:
• At the top of the file, after the imports, add the is_python_issue function copied from on_ticket.py

🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request.