Skip to content

Commit

Permalink
fix: solve the pull_request (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
xingwanying authored Oct 16, 2024
1 parent afa6f6f commit fdd8c44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/event_handler/pull_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ async def execute(self):
repo.full_name, pr.number, pr.title, pr.body
)

print(f"file_diff={file_diff}")
pr_content = f"""
### Pr Title
{pr.title}
Expand All @@ -96,14 +95,14 @@ async def execute(self):
{file_diff}
"""
origin_bot = get_bot_by_id(repo_config.robot_id)

bot = Bot(
bot=BotModel(
id=random_str(),
uid="mock_pull_requst",
description="A Robot for Pull Requst Review",
name="pull_request_bot",
prompt=role_prompt,
repo_name=repo_full_name,
),
llm_token=origin_bot.llm_token,
)
Expand Down

0 comments on commit fdd8c44

Please sign in to comment.