gh-data-retrieval
Retrieve pull request and issue data from GitHub repositories using the gh CLI with specific filters and JSON output for downstream processing.
- License 许可
- MIT
- 最近更新
- 2026-10-02
- Stars
- ★ 92
- Forks
- 7
01 前言 Front Matter
- name
- gh-data-retrieval
- description
- Retrieve pull request and issue data from GitHub repositories using the gh CLI with specific filters and JSON output for downstream processing.
03 SKILL.md 正文
GitHub Data Retrieval
This skill focuses on using the gh CLI to efficiently fetch data for repository analysis.
Key Commands
Searching Pull Requests
To find PRs created in a specific timeframe:
gh search prs --repo OWNER/REPO --created "YYYY-MM-DD..YYYY-MM-DD" --json number,author,createdAt,mergedAt,state
Searching Issues
To find issues created in a specific timeframe:
gh search issues --repo OWNER/REPO --created "YYYY-MM-DD..YYYY-MM-DD" --json number,labels,createdAt,closedAt,state
Filtering by Labels
To find bug reports (labels containing "bug"):
gh search issues --repo OWNER/REPO --label "bug" --created "YYYY-MM-DD..YYYY-MM-DD" --json number
Tips for Analysis
- Use
--limitto ensure you get all results if there are many (default is 30). - Use
--jsonto specify only the fields you need to keep the payload small. - Date ranges use the
YYYY-MM-DD..YYYY-MM-DDsyntax.
04 同仓库更多 Skills
object_counter
Count occurrences of an object in the image using computer vision algorithm.
travel-planning-workflow
Invoke this skill when performing travel planning. It defines a structured workflow for generating itineraries. Following this workflow is essential to ensure the final plan satisfies user requirements.
bundled-dataset-search-tool
invoke this skill when you need to perform database search for travel planning. This skill provides some useful pre-packaged tools to look up accommodations, attractions, cities, driving distance, flights, and restaurants from the bundled dataset.
glm-output
Output-processing guidance for GLM tasks. Especially useful after glm-basics and glm-calibration when you need verifier-matching metrics from output.nc and a final /root/metrics.json.
glm-calibration
Calibration guidance for GLM tasks. Often most effective after glm-basics has clarified the setup; glm-output is the companion skill for exact final metric computation.
glm-basics
A good starting point for GLM calibration tasks. Use to inspect glm3.nml, confirm how GLM runs, and identify the relevant files before moving on to calibration and output evaluation.