Skip to content

Commit

Permalink
build: Renovate custom manager for melos.yaml (#170)
Browse files Browse the repository at this point in the history
* build: renovate custom manager for melos.yaml

* build: migrate configure
  • Loading branch information
ronnnnn committed Sep 8, 2024
1 parent ece009d commit 2b023ee
Showing 1 changed file with 27 additions and 10 deletions.
37 changes: 27 additions & 10 deletions renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,50 @@
":semanticCommits",
":semanticCommitTypeAll(upgrade)",
":semanticCommitScopeDisabled",
"schedule:daily",
"schedule:daily"
],
"timezone": "Asia/Tokyo",
"labels": [
"dep",
"dep"
],
"branchPrefix": "upgrade-renovate-",
"major": {
"minimumReleaseAge": "5 days",
"minimumReleaseAge": "5 days"
},
"minor": {
"minimumReleaseAge": "3 days",
"minimumReleaseAge": "3 days"
},
"patch": {
"minimumReleaseAge": "2 days",
"minimumReleaseAge": "2 days"
},
"assignees": [
"@ronnnnn",
"@ronnnnn"
],
"assigneesSampleSize": 1,
// https://docs.renovatebot.com/configuration-options/#configmigration
// https://github.com/renovatebot/renovate/issues/16359
configMigration: false,
// https://docs.renovatebot.com/configuration-options/#vulnerabilityalerts
vulnerabilityAlerts: {
enabled: true,
labels: [
'A-dependencies',
'A-security',
],
"A-dependencies",
"A-security"
]
},
transitiveRemediation: true,
customManagers: [
{
customType: "regex",
fileMatch: [
"^melos.yaml$"
],
matchStrings: [
// https://semver.org/spec/v2.0.0.html
"dart pub global activate (?<depName>\\w+) (?<currentValue>(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+(?:[0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)"
],
datasourceTemplate: "dart",
// same versioning as dart datasource
versioningTemplate: "npm"
}
]
}

0 comments on commit 2b023ee

Please sign in to comment.