task icon Task

List GitHub Pull Requests

List pull requests in a GitHub repository

Requirements
Repository (owner/repo format), optional state filter (open/closed/all)
2

Get repository context from user. Parse owner and repo from their input.
Confirm state filter (default: open).

4

Present the pull requests to the user:

  • Show PR number, title, state/draft status, author
  • Show branch info (head → base)
  • Indicate review status and CI checks if available
  • Offer to show details for a specific PR
                    To run this task you must have the following required information:

> Repository (owner/repo format), optional state filter (open/closed/all)

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` (PR states and review workflow)

2. Get repository context from user. Parse owner and repo from their input.
Confirm state filter (default: open).


3. [Gather Arguments: List GitHub Pull Requests] 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
- `state` (default: "open"): state filter (open/closed/all)
- `per_page` (default: "30"): 30
- `page` (default: "1"): 1

4. [Run Code: List GitHub Pull Requests]: Call `run_script` with:

```json
{
  "file": {
    "path": https://sk.ills.app/code/github.prs.list/preview,
    "args": [
      "owner",
      "repo",
      "state",
      "per_page",
      "page"
    ]
  },
  "packages": null
}
```

5. Present the pull requests to the user:
- Show PR number, title, state/draft status, author
- Show branch info (head → base)
- Indicate review status and CI checks if available
- Offer to show details for a specific PR