repo-activity
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAnalyse GitHub repository activity and current state.
分析GitHub仓库的活动情况与当前状态。
Usage
使用方法
/repo-activity [<owner/repo>]/repo-activity [<owner/repo>]Analysis Sections
分析模块
Issues
议题
- Total open/closed, by label, recently active (7d), stale (>30d), average close time
- 已开启/已关闭总数(按标签分类)、最近7天活跃议题、超过30天未更新的陈旧议题、平均关闭时长
Pull Requests
拉取请求(PR)
- Open PRs with review status, recently merged (7d), review turnaround, awaiting review, drafts
- 带审核状态的已开启PR、最近7天合并的PR、审核周转时间、待审核PR、草稿PR
Activity Metrics
活动指标
- Commit frequency, active contributors (30d), code review participation, release cadence
- 提交频率、最近30天活跃贡献者、代码审核参与度、发布节奏
Detailed Summaries
详细摘要
- Each open issue with latest comment preview
- Each open PR with review status and changes summary
- 每个已开启议题的最新评论预览
- 每个已开启PR的审核状态与变更摘要
Implementation
实现步骤
- Check for repo context using if no repo specified
git remote -v - Use to fetch repository data
gh api - Analyse patterns in issue and PR lifecycle
- Generate markdown report to
<repo>-activity-<date>.md
- 若未指定仓库,使用获取仓库上下文
git remote -v - 调用获取仓库数据
gh api - 分析议题与PR生命周期中的模式
- 生成Markdown报告并保存为
<repo>-activity-<date>.md
Auto-Exit When Standalone
独立运行时自动退出
IMPORTANT: If this command is being run as a standalone request, automatically exit after completing all phases successfully.
重要提示:若该命令作为独立请求运行,在所有阶段成功完成后将自动退出。