Skip to content

Commit

Permalink
Fix renovate config for gitsubmodule (#533)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
Yang-33 authored Jan 21, 2025
1 parent 35218f3 commit c912145
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions renovate.json5
Original file line number Diff line number Diff line change
@@ -1,24 +1,34 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
"config:recommended"
],
"timezone": "Asia/Tokyo",
"automerge": true,
"platformAutomerge": true,
"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"
]
},
]
}

0 comments on commit c912145

Please sign in to comment.