Comment on a GitHub pull request
github_pr_commentPosts a Markdown comment on a pull request and can upload image or video attachments, notifying followers and keeping the discussion on the PR.
Instructions
Post a comment on a pull request; the people following it are notified and the comment stays on the pull request. Needs write permission on the repository. A pull request is 12, #12, owner/repo#12 or its URL; a bare number means the working tree's repository, or repo. Attachments are images (png, jpg, gif, webp, svg, up to 10 MiB) and videos (mp4, mov, webm, up to 100 MiB), up to 50, uploaded with the text: a body reference like  becomes the uploaded file and the others are appended; they need gh 2.99 or newer, and a file that fails to upload is listed under errors.attachments while the rest goes through.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr | Yes | The pull request, as 12, #12, owner/repo#12 or its URL. | |
| body | Yes | The comment, in Markdown. | |
| repo | No | owner/name; defaults to the working tree's repository (its origin). Used for a bare number. | |
| attachments | No | Images and videos to upload with the text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr | Yes | ||
| url | Yes | The new comment's URL. | |
| repo | Yes | ||
| notes | Yes | What to know about the result; [] when nothing. | |
| errors | Yes | Failed steps, keyed by step (fields.<Field name>, blocked_by, kind, labels, milestone); {} when none. | |
| foreign | Yes | ||
| attachments | Yes | The files that were sent; [] when none were given. |