git-summarize-weekly
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGit Summarize Weekly
Git Summarize Weekly
总结本周的 GitHub 贡献,输出适合写入周报的英文摘要。
Summarize this week's GitHub contributions and output an English summary suitable for weekly reports.
触发条件
Trigger Conditions
当用户要求总结本周 GitHub 贡献、写周报或查看本周工作时使用此 skill。
Use this skill when users request to summarize this week's GitHub contributions, write a weekly report, or review this week's work.
执行步骤
Execution Steps
-
计算日期范围:计算本周一的日期到今天。使用命令计算。
date -
拉取 GitHub events:bash
gh api users/zc277584121/events --paginate --jq '.[]'获取用户近期的 GitHub 活动事件。 -
过滤和分析:
- 过滤出本周时间范围内的事件。
- 默认排除 自己账号下的仓库,只保留对他人仓库的贡献。
zc277584121 - 如果用户明确要求包含自己的仓库,则不排除。
- 关注以下事件类型:
- :代码推送
PushEvent - :PR 创建/合并
PullRequestEvent - :PR Review
PullRequestReviewEvent - :Issue 创建/关闭
IssuesEvent - :Issue 评论
IssueCommentEvent - :分支/标签创建
CreateEvent
-
输出格式:
- 必须用英文输出,适合直接抄写到周报中。
- 大的 feature 或重要 PR 单独一条列出,简要说明做了什么。
- 小的修复、review、评论等可以合并为一条。
- 按仓库分组,格式简洁清晰。
- 示例格式:
## Weekly Contributions (2025-01-20 ~ 2025-01-24) ### milvus-io/pymilvus - Implemented hybrid search API with support for multiple vector fields (#xxx) - Fixed connection pool timeout issue (#xxx) - Reviewed 3 PRs related to batch insert optimization ### milvus-io/milvus - Minor: commented on 2 issues about memory management
-
Calculate Date Range: Calculate the date from this Monday to today using thecommand.
date -
Fetch GitHub Events:bash
gh api users/zc277584121/events --paginate --jq '.[]'Fetch recent GitHub activity events for the user. -
Filter and Analyze:
- Filter events within this week's date range.
- Exclude by default repositories under the account, only keep contributions to others' repositories.
zc277584121 - Do not exclude if the user explicitly requests to include their own repositories.
- Focus on the following event types:
- : Code pushes
PushEvent - : PR creation/merge
PullRequestEvent - : PR Reviews
PullRequestReviewEvent - : Issue creation/closure
IssuesEvent - : Issue comments
IssueCommentEvent - : Branch/tag creation
CreateEvent
-
Output Format:
- Must output in English, suitable for direct copying into weekly reports.
- List major features or important PRs as individual items with brief descriptions of what was done.
- Minor fixes, reviews, comments, etc., can be combined into a single item.
- Group by repository with a concise and clear format.
- Example format:
## Weekly Contributions (2025-01-20 ~ 2025-01-24) ### milvus-io/pymilvus - Implemented hybrid search API with support for multiple vector fields (#xxx) - Fixed connection pool timeout issue (#xxx) - Reviewed 3 PRs related to batch insert optimization ### milvus-io/milvus - Minor: commented on 2 issues about memory management
注意事项
Notes
- GitHub Events API 最多返回最近 90 天、300 个事件的数据。
- 如果某一周活动特别少,如实报告即可。
- 输出要简洁实用,直接可以粘贴到周报中。
- The GitHub Events API returns a maximum of 300 events from the last 90 days.
- If there is very little activity in a week, report it truthfully.
- The output should be concise and practical, ready to be pasted directly into weekly reports.