mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 02:45:18 +00:00
Merge pull request #1174 from Codium-ai/tr/protections2
Tr/protections2
This commit is contained in:
commit
2bbf4b366e
1 changed files with 3 additions and 1 deletions
|
|
@ -93,7 +93,9 @@ async def polling_loop():
|
||||||
if 'user' in comment and 'login' in comment['user']:
|
if 'user' in comment and 'login' in comment['user']:
|
||||||
if comment['user']['login'] == user_id:
|
if comment['user']['login'] == user_id:
|
||||||
continue
|
continue
|
||||||
comment_body = comment['body'] if 'body' in comment else ''
|
comment_body = comment.get('body', '')
|
||||||
|
if not comment_body:
|
||||||
|
continue
|
||||||
commenter_github_user = comment['user']['login'] \
|
commenter_github_user = comment['user']['login'] \
|
||||||
if 'user' in comment else ''
|
if 'user' in comment else ''
|
||||||
get_logger().info(f"Polling, pr_url: {pr_url}",
|
get_logger().info(f"Polling, pr_url: {pr_url}",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue