词元广场TOKPUB.COM - 欢迎您,支持一个 Key 调用近 600+ 海内外模型,限时特价模型低至 1 折,欢迎上岸!
| 触发方式 | 方式 | 工具 |
|---|---|---|
| 定时 | 按周期运行(每小时、每晚、每周) | cronjob 工具或 /cron 斜杠命令 |
| GitHub 事件 | PR 开启、推送、issue、CI 结果时触发 | Webhook 平台(hermes webhook subscribe) |
| API 调用 | 外部服务向你的端点 POST JSON | Webhook 平台(config.yaml 路由或 hermes webhook subscribe) |
http://your-server:8644/webhooks/github-pr-review,Content type:application/json,Secret:github-webhook-secret,Events:Pull requests。| 表达式 | 含义 |
|---|---|
every 30m | 每 30 分钟 |
every 2h | 每 2 小时 |
0 2 * * * | 每天凌晨 2:00 |
0 9 * * 1 | 每周一上午 9:00 |
0 9 * * 1-5 | 工作日上午 9:00 |
0 3 * * 0 | 每周日凌晨 3:00 |
0 */6 * * * | 每 6 小时 |
| 目标 | 参数 | 说明 |
|---|---|---|
| 当前会话 | --deliver origin | 默认——投递到任务创建所在的位置 |
| 本地文件 | --deliver local | 保存输出,不发送通知 |
| Telegram | --deliver telegram | 主频道,或用 telegram:CHAT_ID 指定特定会话 |
| Discord | --deliver discord | 主频道,或用 discord:CHANNEL_ID 指定 |
| Slack | --deliver slack | 主频道 |
| SMS | --deliver sms:+15551234567 | 直接发送到手机号 |
| 指定话题 | --deliver telegram:-100123:456 | Telegram 论坛话题 |
| 变量 | 说明 |
|---|---|
{pull_request.title} | PR 标题 |
{issue.number} | Issue 编号 |
{repository.full_name} | owner/repo |
{action} | 事件动作(opened、closed 等) |
{__raw__} | 完整 JSON payload(截断至 4000 字符) |
{sender.login} | 触发事件的 GitHub 用户 |
[SILENT] 时,投递将被抑制。使用此模式可避免在无事发生时产生通知噪音:If nothing noteworthy happened, respond with [SILENT].