petercat-ai / petercat

A conversational Q&A agent configuration system, self-hosted deployment solutions, and a convenient all-in-one application SDK, allowing you to create intelligent Q&A bots for your GitHub repositories
https://petercat.ai
MIT License
605 stars 17 forks source link

chore: tweak the prompt of the code review #421

Closed xingwanying closed 1 month ago

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
petercat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 27, 2024 6:31am
petercat-assistant[bot] commented 1 month ago

Walkthrough

This pull request focuses on refining the prompts used for code reviews, ensuring clarity and consistency in the instructions provided to the AI assistant.

Changes

File Summary
server/agent/prompts/bot_template.py Added a constraint to ensure issue creation is only done with user consent.
server/agent/prompts/issue_helper.py Updated instructions to never attempt creating a new issue and to apologize instead.
server/agent/prompts/pull_request.py Introduced a new skill for code review and refined existing instructions for clarity.
server/event_handler/pull_request.py Removed unused import and improved code formatting for better readability.
codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 25.00000% with 12 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
server/event_handler/pull_request.py 21.42% 11 Missing :warning:
server/agent/prompts/pull_request.py 50.00% 1 Missing :warning:
Files with missing lines Coverage Δ
server/agent/prompts/bot_template.py 66.66% <ø> (ø)
server/agent/prompts/issue_helper.py 66.66% <ø> (ø)
server/agent/prompts/pull_request.py 66.66% <50.00%> (ø)
server/event_handler/pull_request.py 45.20% <21.42%> (+0.61%) :arrow_up:

... and 1 file with indirect coverage changes