Add tea comment command documentation

- Add Comments section to gitea skill with examples
- Update code-reviewer agent with explicit tea CLI commands
  for posting comments, approving, and merging PRs

Closes #6

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit was merged in pull request #7.
This commit is contained in:
2025-12-31 16:53:49 +01:00
parent 8b298e3564
commit 527df936cb
2 changed files with 19 additions and 3 deletions

View File

@@ -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:
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:
- **Code Quality**: Readability, maintainability, complexity
- **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
- **Test Coverage**: Missing tests, untested edge cases
3. Generate a structured review comment
4. Post the review as a comment on the PR
5. **If verdict is LGTM**: Auto-merge using rebase style
4. Post the review using `tea comment <number> "<review body>"`
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
## Review Comment Format

View File

@@ -112,6 +112,22 @@ tea repos <owner>/<repo> # Repository info
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
```bash