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
598 stars 16 forks source link

fix: Prohibit proactive issue creation in issue responses #415

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 26, 2024 2:51am
petercat-assistant[bot] commented 1 month ago

Walkthrough

This pull request introduces changes to ensure that issues are not created proactively without user consent. The modifications emphasize the importance of obtaining user permission before creating issues and prohibit the creation of new issues under any circumstances.

Changes

File Summary
server/agent/prompts/bot_template.py Added a constraint to prohibit issue creation without user consent.
server/agent/prompts/issue_helper.py Updated guidelines to ensure no new issues are created under any circumstances.
codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Files with missing lines Coverage Δ
server/agent/prompts/bot_template.py 66.66% <ø> (ø)
server/agent/prompts/issue_helper.py 66.66% <ø> (ø)