GitHub code sync - automatically synchronize watched GitHub open-source projects to local storage daily. Supports multiple project configurations, automatically determines whether to perform an initial clone or an incremental pull, records new commits and pushes a summary to Discord/Telegram. Suitable for scenarios like 'mirroring open-source code' and 'tracking upstream updates'. Triggered daily at 23:00 by a scheduler and can also be invoked manually.
每日自动追踪关注的 GitHub 开源项目,将最新代码同步到本地,并播报新增提交摘要。
git clone,已存在则 git fetch + reset --hard{
"repos": [
{
"name": "OpenClaw",
"repo": "https://github.com/openclaw/openclaw",
"localPath": "/Users/mlamp/Workspace/OpenClaw",
"branch": "main"
}
],
"channelId": "1469204772379693222",
"telegramChatId": "-1003855994917"
}
| 参数 | 类型 | 默认值 | 说明 | |------|------|--------|------| | repos | object[] | 见默认列表 | 要同步的项目列表 | | repos[].name | string | - | 项目显示名称 | | repos[].repo | string | - | GitHub 仓库 URL | | repos[].localPath | string | - | 本地同步目录 | | repos[].branch | string | "main" | 目标分支(可不填,自动检测) | | channelId | string | DEFAULT_DISCORD_CHANNEL_ID | Discord 通知频道 ID | | telegramChatId | string | DEFAULT_TELEGRAM_CHAT_ID | Telegram Chat ID |
{
"ok": true,
"date": "2026-02-25",
"results": [
{
"name": "OpenClaw",
"ok": true,
"action": "pull",
"newCommits": 3,
"commits": ["a1b2c3d feat: xxx", "..."]
}
],
"discordMessageIds": ["123456"],
"telegramMessageIds": ["789"],
"message": "GitHub 代码同步完成"
}
🔄 GitHub 代码同步报告 | 2026-02-25
**OpenClaw** ✅ Pull 更新 · 3 个新提交
• `a1b2c3d feat: add new skill api`
• `b2c3d4e fix: memory leak in agent loop`
• `c3d4e5f docs: update README`
---
JPClaw GitHub 同步 · 自动生成 · 全部成功
在 tasks.json 的 payload.repos 数组中追加新项目即可,无需修改 skill 代码:
{
"name": "新项目名",
"repo": "https://github.com/xxx/yyy",
"localPath": "/Users/mlamp/Workspace/YYY"
}
DISCORD_BOT1_TOKEN / DISCORD_TOKEN - Discord Bot TokenDISCORD_PROXY_URL - 代理设置DEFAULT_DISCORD_CHANNEL_ID - 默认 Discord 频道DEFAULT_TELEGRAM_CHAT_ID - 默认 Telegram Chat IDSearch for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer