mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-04 12:50:38 +08:00
Improve handling of tagging and Github app user interaction - a small correction
This commit is contained in:
@ -61,7 +61,7 @@ async def polling_loop():
|
|||||||
async with session.get(latest_comment, headers=headers) as comment_response:
|
async with session.get(latest_comment, headers=headers) as comment_response:
|
||||||
if comment_response.status == 200:
|
if comment_response.status == 200:
|
||||||
comment = await comment_response.json()
|
comment = await comment_response.json()
|
||||||
if hasattr(comment, 'user') and hasattr(comment['user'], 'login'):
|
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['body'] if 'body' in comment else ''
|
||||||
|
Reference in New Issue
Block a user