mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-02 03:40:38 +08:00
refactor and clean
This commit is contained in:
@ -57,11 +57,7 @@ reflect - Ask the PR author questions about the PR.
|
||||
asyncio.run(reviewer.suggest())
|
||||
elif command in ['review', 'review_pr']:
|
||||
print(f"Reviewing PR: {args.pr_url}")
|
||||
incremental_review = False
|
||||
if len(args.rest) > 0:
|
||||
incremental_review = args.rest[0].startswith("-i")
|
||||
|
||||
reviewer = PRReviewer(args.pr_url, cli_mode=True, is_incremental=incremental_review)
|
||||
reviewer = PRReviewer(args.pr_url, cli_mode=True, args=args.rest)
|
||||
asyncio.run(reviewer.review())
|
||||
elif command in ['reflect']:
|
||||
print(f"Asking the PR author questions: {args.pr_url}")
|
||||
|
Reference in New Issue
Block a user