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

feat: add filter params for search_issue #422

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 10:56am
petercat-assistant[bot] commented 1 month ago

Walkthrough

This pull request introduces filter parameters for the search_issue functionality. The changes include modifications to prompt generation and issue handling to incorporate the new filter parameters.

Changes

File Summary
server/agent/prompts/issue_helper.py Added filter parameters for issue prompts and modified prompt generation logic.
server/agent/tools/issue.py Introduced filter parameters in issue-related tools and adjusted the logic to handle these parameters.
server/event_handler/discussion.py Updated prompt generation to use issue numbers instead of repository names and URLs.
server/event_handler/issue.py Modified prompt generation to use issue numbers instead of repository names and URLs.
codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 4.54545% with 21 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
server/agent/tools/issue.py 0.00% 21 Missing :warning:
Files with missing lines Coverage Δ
server/agent/prompts/issue_helper.py 66.66% <100.00%> (ø)
server/event_handler/discussion.py 21.00% <ø> (ø)
server/event_handler/issue.py 29.41% <ø> (ø)
server/agent/tools/issue.py 17.39% <0.00%> (ø)

... and 1 file with indirect coverage changes