From c912145b46234b6e1e45fe2a6e2a21999f36a6ec Mon Sep 17 00:00:00 2001 From: Yuta Kasai Date: Tue, 21 Jan 2025 10:54:08 +0900 Subject: [PATCH] Fix renovate config for gitsubmodule (#533) Renovate recognizes packages in git submodule as `"packageName": "https://github.com/line/line-openapi.git"`. however, this repository specifies `"matchPackagePatterns": ["^line-openapi$"]`. This won't be matched the submodule, and special config doesn't work. This change fixes it. https://github.com/Yang-33/line-bot-sdk-php-653-main-repository/issues/2 checked this change works as expected. (this will be archived) (same as https://github.com/line/line-bot-sdk-php/pull/654) --- renovate.json5 | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/renovate.json5 b/renovate.json5 index b48b181b..cd50949d 100644 --- a/renovate.json5 +++ b/renovate.json5 @@ -1,7 +1,7 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ - "config:base" + "config:recommended" ], "timezone": "Asia/Tokyo", "automerge": true, @@ -9,16 +9,26 @@ "git-submodules": { "enabled": true }, - "labels": [ "dependency upgrade" ], + "labels": [ + "dependency upgrade" + ], "packageRules": [ { - "matchPackagePatterns": ["^line-openapi$"], - "labels": ["dependency upgrade", "line-openapi-update"], + "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"] - } + "schedule": [ + "after 11pm", + "before 4am" + ] + }, ] }