Skip to content

Commit a3b295c

Browse files
authored
Fix renovate config for gitsubmodule (#748)
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 b6d4f3d commit a3b295c

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

renovate.json5

+16-6
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+
"matchPackagePatterns": [
18+
"line-openapi"
19+
],
20+
"labels": [
21+
"dependency upgrade",
22+
"line-openapi-update"
23+
],
1724
// In many cases, we would like to update line-openapi by dispatching the GitHub workflow during working
1825
// hours, as there are code changes.
1926
// If that is forgotten, there's a possibility that line-openapi updates or code changes won't happen at
2027
// all, so we allow it to run at night just in case.
21-
"schedule": ["after 11pm and before 4am"]
22-
}
28+
"schedule": [
29+
"after 11pm",
30+
"before 4am"
31+
]
32+
},
2333
]
2434
}

0 commit comments

Comments
 (0)