Skip to content

Commit 2959b38

Browse files
authored
Fix renovate config for gitsubmodule (#654)
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. Thus #651 was opened and merged at noon, not at night. This change fixes it. Yang-33/line-bot-sdk-php-653-main-repository#2 checked this change works as expected. (this will be archived) Close #653
1 parent 5538dce commit 2959b38

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

renovate.json5

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": [
4-
"config:base"
4+
"config:recommended"
55
],
66
"timezone": "Asia/Tokyo",
77
"ignorePaths": [
@@ -12,16 +12,26 @@
1212
"git-submodules": {
1313
"enabled": true
1414
},
15-
"labels": [ "dependency upgrade" ],
15+
"labels": [
16+
"dependency upgrade"
17+
],
1618
"packageRules": [
1719
{
18-
"matchPackagePatterns": ["^line-openapi$"],
19-
"labels": ["dependency upgrade", "line-openapi-update"],
20-
// In many cases, we would like to update line-openapi by dispatching the GitHub workflow during working
21-
// hours, as there are code changes.
22-
// If that is forgotten, there's a possibility that line-openapi updates or code changes won't happen at
23-
// all, so we allow it to run at night just in case.
24-
"schedule": ["after 11pm and before 4am"]
25-
}
20+
"matchPackagePatterns": [
21+
"line-openapi"
22+
],
23+
"labels": [
24+
"dependency upgrade",
25+
"line-openapi-update"
26+
],
27+
// In many cases, we would like to update line-openapi by dispatching the GitHub workflow during working
28+
// hours, as there are code changes.
29+
// If that is forgotten, there's a possibility that line-openapi updates or code changes won't happen at
30+
// all, so we allow it to run at night just in case.
31+
"schedule": [
32+
"after 11pm",
33+
"before 4am"
34+
]
35+
},
2636
]
2737
}

0 commit comments

Comments
 (0)