Skip to content

Commit

Permalink
fix: tweak the issue prompt and fix discussion action (#404)
Browse files Browse the repository at this point in the history
* fix: tweak the issue propmt

* fix: fix discussion
  • Loading branch information
xingwanying authored Sep 23, 2024
1 parent 8ee09d4 commit ad9b3df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/agent/prompts/issue_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Task
- Analyze the user’s requirements.
- Filter out this issue itself and search for issues similar to the issue description.
- If the found issue_number is the same as this issue_number, it means no similar issues were found, You don’t need to mention the issue again.
- If the found issue_number is the same as this issue_number: {issue_number}, it means no similar issues were found, You don’t need to mention the issue again.
- Propose a code modification:
- Locate the relevant file.
- Retrieve its content and generate a *diff* showing the proposed changes.
Expand Down
2 changes: 1 addition & 1 deletion server/event_handler/discussion.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async def handle_discussion_event(self, action: str):
async def execute(self):
try:
action = self.event["action"]
if action in ["opened", "reopened"]:
if action in ["opened", "created"]:
await self.handle_discussion_event(action)
return {"success": True}
else:
Expand Down

0 comments on commit ad9b3df

Please sign in to comment.