Comment on PR
project_pr_commentPost general or inline review comments on a pull request by PR number or URL; use file and line to pin feedback to specific code.
Instructions
Post a comment on a pull request: a general thread comment, or an inline review note pinned to a file/line (pass path + line). Accepts a PR number or a full PR URL. Use when: reporting status into the PR thread, answering a review comment, or leaving a file/line review note (path + line). Avoid when: the PR is not open yet (create it first), or you want to change code (use project_edit_file). Speed: one provider API call (issue-comments, or review-comments for inline notes). Output: pr_comment: repo, provider, pr, inline, comment_id, url, created_at, body_chars (+ path/line/side for inline notes). Batch-safe: no
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr | Yes | PR number or PR URL. | |
| body | Yes | Comment body (markdown). | |
| line | No | Line number to anchor the inline note (new side by default). | |
| path | No | Workspace/repo file path for an inline review comment (requires `line`); omit for a general comment. | |
| repo | No | Repository as "owner/name" or a PR URL (default: VENIRA_GIT_REPO, git.repo in venira.config.json, else the workspace .git origin remote). | |
| side | No | RIGHT = new code (default), LEFT = deleted code. | |
| reason | No | Why this change is made (e.g. "sua loi null pointer o dong 45"). Recorded in the audit trail so later sessions know the intent. Single line, max 400 chars, secrets are redacted. | |
| provider | No | Provider override for this call (default: VENIRA_GIT_PROVIDER, then venira.config.json, then inferred from the origin remote). | |
| commit_id | No | Commit sha the note is anchored to (default: the PR head). | |
| start_line | No | First line of a multi-line inline note (must be <= line; GitHub/GitLab). |