Skip to content

feat(maintenance): add option to suppress restart/update notification while keeping autoUpdate #628

Description

@mortalnow

问题

开启 maintenance.autoUpdate + autoRestart 后,每次自动升级并重启都会给 owner 发一条飞书卡片通知(含 changelog、dashboard 链接等)。对于只想静默升级的用户,这条通知是多余的,但目前没有单独关闭通知的开关。

现状

  • autoUpdate.enabled — 控制是否自动下载安装新版本
  • autoRestart.enabled — 控制是否在安装新版本后自动重启
  • 通知卡片由 restart-intent 触发,只要发生了 intentional restart 就会发,无法单独关闭

期望

maintenance 配置中增加通知开关,例如:

{
  "maintenance": {
    "autoUpdate": { "enabled": true, "time": "04:00" },
    "autoRestart": { "enabled": true },
    "notifyOnRestart": false
  }
}

或者更细粒度:

"notifyOnRestart": { "enabled": true, "includeChangelog": false }

替代方案

目前只能关闭 autoRestart 来避免通知,但代价是新版本安装后不会自动生效,需要手动 botmux restart

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions