You have access to the `gh` terminal command. I already authenticated it for you. Please review it to use the PR that I asked you to review. You're already in the `cline` repo.
<detailed_sequence_of_steps>
# GitHub PR Review Process - Detailed Sequence of Steps
## 1. Gather PR Information
1. Get the PR title, description, and comments:
```bash gh pr view <PR-number> --json title,body,comments ``` 2. Get the full diff of the PR: ```bash gh pr diff <PR-number> ``` ## 2. Understand the Context
1. Identify which files were modified in the PR:
```bash gh pr view <PR-number> --json files ``` 2. Examine the original files in the main branch to understand the context:
```xml <read_file> <path>path/to/file</path> </read_file> ``` 3. For specific sections of a file, you can use search_files: ```xml <search_files> <path>path/to/directory</path> <regex>search term</regex> <file_pattern>*.ts</file_pattern> </search_files> ``` ## 3. Analyze the Changes 1. For each modified file, understand: - What was changed - Why it was changed (based on PR description) - How it affects the codebase - Potential side effects 2. Look for: - Code quality issues - Potential bugs - Performance implications - Security concerns - Test coverage ## 4. Ask for User Confirmation 1. Before making a decision, ask the user if you should approve the PR, providing your assessment and justification: ```xml <ask_followup_question> <question>Based on my review of PR #<PR-number>, I recommend [approving/requesting changes]. Here's my justification: [Detailed justification with key points about the PR quality, implementation, and any concerns] Would you like me to proceed with this recommendation?</question> <options>["Yes, approve the PR", "Yes, request changes", "No, I'd like to discuss further"]</options> </ask_followup_question> ``` ## 5. Ask if User Wants a Comment Drafted 1. After the user decides on approval/rejection, ask if they would like a comment drafted: ```xml <ask_followup_question> <question>Would you like me to draft a comment for this PR that you can copy and paste?</question> <options>["Yes, please draft a comment", "No, I'll handle the comment myself"]</options> </ask_followup_question> ``` 2. If the user wants a comment drafted, provide a well-structured comment they can copy: ``` Thank you for this PR! Here's my assessment: [Detailed assessment with key points about the PR quality, implementation, and any suggestions] [Include specific feedback on code quality, functionality, and testing] ``` ## 6. Make a Decision 1. Approve the PR if it meets quality standards: ```bash # For single-line comments: gh pr review <PR-number> --approve --body "Your approval message" # For multi-line comments with proper whitespace formatting: cat << EOF | gh pr review <PR-number> --approve --body-file - Thanks @username for this PR! The implementation looks good. I particularly like how you've handled X and Y. Great work! EOF ``` 2. Request changes if improvements are needed: ```bash # For single-line comments: gh pr review <PR-number> --request-changes --body "Your feedback message" # For multi-line comments with proper whitespace formatting: cat << EOF | gh pr review <PR-number> --request-changes --body-file - Thanks @username for this PR! The implementation looks promising, but there are a few things to address: 1. Issue one 2. Issue two Please make these changes and we can merge this. EOF
Related Issues not found
Please contact @yiGmMk to initialize the comment