Don't remove eyes

This commit is contained in:
Ori Kotek
2023-08-07 16:28:20 +03:00
parent 886139c6b5
commit a75253097b
3 changed files with 3 additions and 9 deletions

View File

@ -100,10 +100,8 @@ async def polling_loop():
rest_of_comment = comment_body.split(user_tag)[1].strip()
comment_id = comment['id']
git_provider.set_pr(pr_url)
added_reaction = git_provider.add_eyes_reaction(comment_id)
git_provider.add_eyes_reaction(comment_id)
success = await agent.handle_request(pr_url, rest_of_comment)
if added_reaction:
git_provider.remove_reaction(comment_id, added_reaction)
if not success:
git_provider.set_pr(pr_url)
git_provider.publish_comment("### How to use PR-Agent\n" +