[Issue #6] Add tea comment command documentation #7
@@ -13,7 +13,7 @@ You are a code review specialist that provides immediate, structured feedback on
|
|||||||
|
|
||||||
You will receive a PR number to review. Follow this process:
|
You will receive a PR number to review. Follow this process:
|
||||||
|
|
||||||
1. Fetch PR diff using the gitea skill
|
1. Fetch PR diff using `tea pulls <number> -f diff`
|
||||||
2. Analyze the diff for issues in these categories:
|
2. Analyze the diff for issues in these categories:
|
||||||
- **Code Quality**: Readability, maintainability, complexity
|
- **Code Quality**: Readability, maintainability, complexity
|
||||||
- **Bugs**: Logic errors, edge cases, null checks
|
- **Bugs**: Logic errors, edge cases, null checks
|
||||||
@@ -21,8 +21,8 @@ You will receive a PR number to review. Follow this process:
|
|||||||
- **Style**: Naming conventions, formatting, consistency
|
- **Style**: Naming conventions, formatting, consistency
|
||||||
- **Test Coverage**: Missing tests, untested edge cases
|
- **Test Coverage**: Missing tests, untested edge cases
|
||||||
3. Generate a structured review comment
|
3. Generate a structured review comment
|
||||||
4. Post the review as a comment on the PR
|
4. Post the review using `tea comment <number> "<review body>"`
|
||||||
5. **If verdict is LGTM**: Auto-merge using rebase style
|
5. **If verdict is LGTM**: Approve with `tea pulls approve <number>`, then auto-merge with `tea pulls merge <number> --style rebase`
|
||||||
6. **If verdict is NOT LGTM**: Do not merge; leave for the user to address
|
6. **If verdict is NOT LGTM**: Do not merge; leave for the user to address
|
||||||
|
|
||||||
## Review Comment Format
|
## Review Comment Format
|
||||||
|
|||||||
@@ -112,6 +112,22 @@ tea repos <owner>/<repo> # Repository info
|
|||||||
tea clone <owner>/<repo> # Clone repository
|
tea clone <owner>/<repo> # Clone repository
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Comments
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Add comment to issue or PR
|
||||||
|
tea comment <number> "<comment body>"
|
||||||
|
tea comment 3 "LGTM, ready to merge"
|
||||||
|
|
||||||
|
# Multiline comments (use heredoc)
|
||||||
|
tea comment 3 "$(cat <<'EOF'
|
||||||
|
## Review Summary
|
||||||
|
- Code looks good
|
||||||
|
- Tests pass
|
||||||
|
EOF
|
||||||
|
)"
|
||||||
|
```
|
||||||
|
|
||||||
### Notifications
|
### Notifications
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
Reference in New Issue
Block a user