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

fix: tweak the issue prompt and fix discussion action #404

Closed xingwanying closed 2 months ago

vercel[bot] commented 2 months 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 23, 2024 8:30am
petercat-assistant[bot] commented 2 months ago

Walkthrough

This pull request addresses two main issues: it tweaks the issue prompt to provide clearer instructions and fixes the discussion action to handle 'created' events instead of 'reopened'.

Changes

File Summary
server/agent/prompts/issue_helper.py Updated the issue prompt to include the specific issue number in the message.
server/event_handler/discussion.py Modified the discussion event handler to recognize 'created' actions instead of 'reopened'.
codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
server/event_handler/discussion.py 0.00% 1 Missing :warning:
Files with missing lines Coverage Δ
server/agent/prompts/issue_helper.py 66.66% <ø> (ø)
server/event_handler/discussion.py 27.94% <0.00%> (ø)