Skip to content

Commit 92e6164

Browse files
authored
Fix renovate config for gitsubmodule (#1531)
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. Yang-33/line-bot-sdk-php-653-main-repository#2 checked this change works as expected. (this will be archived) (same as line/line-bot-sdk-php#654)
1 parent 70d3ca1 commit 92e6164

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

renovate.json5

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

0 commit comments

Comments
 (0)