List GitHub Issues
Search and list issues in a GitHub repository
Requirements
Repository (owner/repo format), optional state filter (open/closed/all), optional labels
2
Get repository context from user. Parse owner and repo from their input.
If they provide a URL like github.com/owner/repo, extract owner and repo.
Confirm state filter (default: open) and any label filters.
4
Present the issues to the user in a clear format:
- Show issue number, title, state emoji (๐ข/๐ด), author, labels, age
- Group by label or priority if patterns are clear
- Offer to show details for a specific issue or filter further
To run this task you must have the following required information:
> Repository (owner/repo format), optional state filter (open/closed/all), optional labels
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 Issues Guide]: Read the documentation in: `skills/sauna/[skill_id]/references/github.issues.guide.md` (Query interpretation and search patterns)
2. Get repository context from user. Parse owner and repo from their input.
If they provide a URL like github.com/owner/repo, extract owner and repo.
Confirm state filter (default: open) and any label filters.
3. [Gather Arguments: List GitHub Issues] 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)
- `labels`: comma-separated labels if any
- `per_page` (default: "30"): 30
- `page` (default: "1"): 1
4. [Run Code: List GitHub Issues]: Call `run_script` with:
```json
{
"file": {
"path": https://sk.ills.app/code/github.issues.list/preview,
"args": [
"owner",
"repo",
"state",
"labels",
"per_page",
"page"
]
},
"packages": null
}
```
5. Present the issues to the user in a clear format:
- Show issue number, title, state emoji (๐ข/๐ด), author, labels, age
- Group by label or priority if patterns are clear
- Offer to show details for a specific issue or filter further