github-labels-query
FeaturedList GitHub repository labels with per_page pagination and name filtering support.
Code & Development 5,125 stars
539 forks Updated today MIT
Install
Quality Score: 87/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# GitHub Labels Query Skill
List GitHub repository labels with efficient pagination using the `--per-page` flag.
## Usage
Use this script to list labels from any repository with controlled page sizes.
### Basic Usage
```bash
./query-labels.sh --owner github --repo gh-aw
# Returns 10 labels (default per_page=10)
```
### Pagination
```bash
# Get the first label only
./query-labels.sh --owner github --repo gh-aw --per-page 1
# Get 25 labels starting from page 2
./query-labels.sh --owner github --repo gh-aw --per-page 25 --page 2
```
### Filtering by name
```bash
# Only labels whose name contains "bug" (case-insensitive)
./query-labels.sh --owner github --repo gh-aw --name-filter bug
```
When `--name-filter` is set, all labels are fetched and filtered, then
`--per-page`/`--page` are applied to the filtered results.
## 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 |
| `--name-filter` | No | - | Case-insensitive substring filter on the label name |
## Output
Returns JSON with the following fields:
```json
{
"labels": [
{
"id": 12345,
"node_id": "LA_...",
"url": "https://api.github.com/repos/owner/repo/labels/bug",
"name": "bug",
"color": "d73a4a",
"default": true,
...
Details
- Author
- github
- Repository
- github/gh-aw
- Created
- 1 years ago
- Last Updated
- today
- Language
- Go
- License
- MIT
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Featured
github-workflows-query
List GitHub Actions workflows with per_page pagination support.
5,125 Updated today
github Code & Development Featured
github-issue-query
Query GitHub issues with jq filtering and reusable selectors.
5,125 Updated today
github Code & Development Listed
github-labels-setup
Create or update a GitHub repo's label taxonomy (name, color, description) from a configurable JSON file, applying each label idempotently so the same command is safe to re-run against a repo that already has some or all of the labels. Use when the user says "set up labels", "standardize labels across repos", "as part of setting up issue tracking", or otherwise asks to create, sync, or apply a label taxonomy on a GitHub repo.
0 Updated 1 weeks ago
alvincrespo