You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Renovate Bot配置中是否允许嵌套Schedule?

关于Renovate Bot配置中嵌套Schedule对象的疑问解答

不能在Renovate Bot的配置中嵌套Schedule对象,你的怀疑是正确的。

你提供的示例配置存在语法错误:错误地将schedule和description包裹在了一层额外的对象中,这不符合Renovate的配置规范,会导致配置无法被正确解析。错误配置示例:

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  {
   "description": "Schedule to run daily at night",
   "schedule": ["* 20-23,0-6 * * *"]
  },
  "timezone": "Europe/London",
  ...
}

正确的配置写法

1. 顶层全局Schedule配置

直接在根对象下定义schedule、description等字段,无需额外嵌套:

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "description": "Schedule to run daily at night",
  "schedule": ["* 20-23,0-6 * * *"],
  "timezone": "Europe/London",
  ...
}

2. 针对特定依赖组的Schedule配置

如果需要为特定依赖组单独设置调度,需在groups数组的对象中直接定义schedule字段,同样不需要额外嵌套:

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "timezone": "Europe/London",
  "groups": [
    {
      "name": "nightly-updates",
      "description": "Schedule to run daily at night",
      "schedule": ["* 20-23,0-6 * * *"],
      "packages": ["*"]
    }
  ],
  ...
}

总结来说,Renovate的配置中,无论是全局还是分组内的调度规则,都是直接作为键值对定义在对应层级的对象中,不允许额外嵌套一层包含schedule的独立对象。

内容的提问来源于stack exchange,提问作者Daniel Sergeievich Karamazov

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.12 05:24:51