Update cli.py

This commit is contained in:
Hussam Lawen 2025-01-22 12:00:15 +02:00 committed by GitHub
parent e0b6db9bec
commit 566eaf63e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -77,6 +77,8 @@ def run(inargs=None, args=None):
async def inner(): async def inner():
if args.issue_url: if args.issue_url:
result = await asyncio.create_task(PRAgent().handle_request(args.issue_url, [command] + args.rest)) result = await asyncio.create_task(PRAgent().handle_request(args.issue_url, [command] + args.rest))
elif args.repo_url:
result = await asyncio.create_task(PRAgent().handle_request(args.repo_url, [command] + args.rest))
else: else:
result = await asyncio.create_task(PRAgent().handle_request(args.pr_url, [command] + args.rest)) result = await asyncio.create_task(PRAgent().handle_request(args.pr_url, [command] + args.rest))