来源信息
- 仓库
- github/gh-aw
- 最近来源活动
- 2026年7月29日 16:40
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 5,381
- 分支
- 584
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
文件资源管理器
2 个文件正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- github-workflows-query
- description
- List GitHub Actions workflows with per_page pagination support.
# GitHub Workflows Query Skill
List GitHub Actions workflows with efficient pagination using the `--per-page` flag.
## Usage
Use this script to list workflows from any repository with controlled page sizes.
### Basic Usage
```bash
./query-workflows.sh --owner github --repo gh-aw
# Returns 10 workflows (default per_page=10)
```
### Pagination
```bash
# Get the first workflow only
./query-workflows.sh --owner github --repo gh-aw --per-page 1
# Get 50 workflows starting from page 2
./query-workflows.sh --owner github --repo gh-aw --per-page 50 --page 2
```
## Parameters
| Parameter | Required | Default | Description |
|-----------|----------|---------|-------------|
| `--owner` | Yes | - | Repository owner (username or organization) |
| `--repo` | Yes | - | Repository name |
| `--per-page` | No | 10 | Results per page (1–100) |
| `--page` | No | 1 | Page number |
## Output
Returns JSON with the following fields:
```json
{
"total_count": 42,
"per_page": 10,
"page": 1,
"workflows": [
{
"id": 12345,
"node_id": "W_...",
"name": "CI",
"path": ".github/workflows/ci.yml",
"state": "active",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"url": "https://api.github.com/repos/owner/repo/actions/workflows/12345",
"html_url": "https://github.com/owner/repo/actions/workflows/ci.yml",
"badge_url": "https://github.com/owner/repo/actions/workflows/ci.yml/badge.svg"
}
]
}
```
## Source
Calls the GitHub REST API:
`GET /repos/{owner}/{repo}/actions/workflows?per_page={n}&page={n}`
在 GitHub 查看