task icon Task

Comment on GitHub Pull Request

Add a comment to an existing GitHub pull request

Requirements
Repository (owner/repo), PR number, comment content
2

Confirm the comment details:

  • Repository and PR number
  • Comment content (markdown supported)

For general feedback, use a comment. For code-specific feedback,
suggest using GitHub's review feature directly.

4

Confirm the comment was added.
Provide the link to view the comment on GitHub.

                    To run this task you must have the following required information:

> Repository (owner/repo), PR number, comment content

If you don't have all of this information, exit here and respond asking for any extra information you require, and instructions to run this task again with ALL required information.

---

You MUST use a todo list to complete these steps in order. Never move on to one step if you haven't completed the previous step. If you have multiple CONSECUTIVE read steps in a row, read them all at once (in parallel). Otherwise, do not read a file until you reach that step.

Add all steps to your todo list now and begin executing.

## Steps

1. [Read GitHub Pull Requests Guide]: Read the documentation in: `skills/sauna/[skill_id]/references/github.prs.guide.md` (Comment vs review distinction)

2. Confirm the comment details:
- Repository and PR number
- Comment content (markdown supported)

For general feedback, use a comment. For code-specific feedback,
suggest using GitHub's review feature directly.


3. [Gather Arguments: Comment on GitHub Pull Request] The next step has the following requirements for arguments, do not proceed until you have all the required information:
- `owner`: owner from requirements
- `repo`: repo from requirements
- `pr_number`: PR number
- `body`: comment body

4. [Run Code: Comment on GitHub Pull Request]: Call `run_script` with:

```json
{
  "file": {
    "path": https://sk.ills.app/code/github.prs.comment/preview,
    "args": [
      "owner",
      "repo",
      "pr_number",
      "body"
    ]
  },
  "packages": null
}
```

5. Confirm the comment was added.
Provide the link to view the comment on GitHub.