AGENT SKILL

gh-data-gathering

How to gather PR and issue data from a GitHub repository using the gh CLI for monthly reports. Use this skill whenever you need to fetch monthly metrics from a repository.

适用职业数据分析师
License 许可
MIT
最近更新
2026-10-02
Stars
★ 92
Forks
7

01 前言 Front Matter

name
gh-data-gathering
description
How to gather PR and issue data from a GitHub repository using the gh CLI for monthly reports. Use this skill whenever you need to fetch monthly metrics from a repository.

03 SKILL.md 正文

Overview

This skill provides instructions for querying GitHub repositories using the gh CLI.

Commands

  • Search PRs: gh pr list --repo cli/cli --created 2024-12-01..2024-12-31 --json number,title,state,createdAt,mergedAt --limit 1000
  • Search Issues: gh issue list --repo cli/cli --created 2024-12-01..2024-12-31 --json number,labels,state,createdAt,closedAt --limit 1000

Data Handling

  • Ensure you set a high --limit to capture all activities for the month.
  • The --json flag is required for structured output.

04 同仓库更多 Skills