[Issue #10] Fix tea comment docs: replace heredoc with quoted strings #11

Merged
HugoNijhuis merged 1 commits from issue-10-fix-heredoc-comment-docs into main 2025-12-31 17:59:54 +00:00
Showing only changes of commit b383d0fdf1 - Show all commits

View File

@@ -119,15 +119,15 @@ tea clone <owner>/<repo> # Clone repository
tea comment <number> "<comment body>" tea comment <number> "<comment body>"
tea comment 3 "LGTM, ready to merge" tea comment 3 "LGTM, ready to merge"
# Multiline comments (use heredoc) # Multiline comments (use quoted strings with literal newlines)
tea comment 3 "$(cat <<'EOF' tea comment 3 "## Review Summary
## Review Summary
- Code looks good - Code looks good
- Tests pass - Tests pass"
EOF
)"
``` ```
> **Warning**: Do not use heredoc syntax `$(cat <<'EOF'...EOF)` with `tea comment` - it causes the command to be backgrounded and fail silently.
### Notifications ### Notifications
```bash ```bash