From 608d0ddadc78e71071ad347fabf5f3a8b2cfba8f Mon Sep 17 00:00:00 2001 From: Yuta Kasai Date: Thu, 16 Jan 2025 11:47:28 +0900 Subject: [PATCH] Limit the timing of git submodule updates by renovate to avoid disrupting work during working hour (#528) same: https://github.com/line/line-bot-sdk-python/pull/743 --- renovate.json | 18 ------------------ renovate.json5 | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 18 deletions(-) delete mode 100644 renovate.json create mode 100644 renovate.json5 diff --git a/renovate.json b/renovate.json deleted file mode 100644 index 7dac1bf1..00000000 --- a/renovate.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "config:base" - ], - "automerge": true, - "platformAutomerge": true, - "git-submodules": { - "enabled": true - }, - "labels": [ "dependency upgrade" ], - "packageRules": [ - { - "matchPackagePatterns": ["^line-openapi$"], - "labels": ["dependency upgrade", "line-openapi-update"] - } - ] -} diff --git a/renovate.json5 b/renovate.json5 new file mode 100644 index 00000000..b48b181b --- /dev/null +++ b/renovate.json5 @@ -0,0 +1,24 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:base" + ], + "timezone": "Asia/Tokyo", + "automerge": true, + "platformAutomerge": true, + "git-submodules": { + "enabled": true + }, + "labels": [ "dependency upgrade" ], + "packageRules": [ + { + "matchPackagePatterns": ["^line-openapi$"], + "labels": ["dependency upgrade", "line-openapi-update"], + // In many cases, we would like to update line-openapi by dispatching the GitHub workflow during working + // hours, as there are code changes. + // If that is forgotten, there's a possibility that line-openapi updates or code changes won't happen at + // all, so we allow it to run at night just in case. + "schedule": ["after 11pm and before 4am"] + } + ] +}