Skip to content

Commit

Permalink
fix: migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Aug 29, 2024
1 parent f125e78 commit 9388275
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 83 deletions.
38 changes: 23 additions & 15 deletions fixes.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"packageRules": [
{
"description": "Exclude invalid version from antlr4ts",
"matchSourceUrlPrefixes": [
"https://github.com/tunnelvisionlabs/antlr4ts"
"matchSourceUrls": [
"https://github.com/tunnelvisionlabs/antlr4ts{,/}**"
],
"allowedVersions": "!/(-dev|-\\w+\\.[a-z0-9]{8})$/"
},
Expand All @@ -15,19 +15,19 @@
},
{
"description": "Only stable haproxy / nginx versions",
"matchPackagePatterns": ["^(?:amd64\\/)?(?:haproxy|nginx)"],
"matchPackageNames": ["/^(?:amd64\\/)?(?:haproxy|nginx)/"],
"allowedVersions": "/^\\d+\\.\\d*[02468]\\.\\d+(-\\w+)?$/"
},
{
"description": "Date based releases",
"matchPackagePatterns": ["(^|\\/)minio$"],
"matchPackageNames": ["/(^|\\/)minio$/"],
"separateMinorPatch": false,
"separateMajorMinor": false
},
{
"description": "Only stable haproxy / nginx bitnami versions",
"matchPackagePatterns": [
"(?:bitnami-containers|bitnami)\\/(?:haproxy|nginx)"
"matchPackageNames": [
"/(?:bitnami-containers|bitnami)\\/(?:haproxy|nginx)/"
],
"allowedVersions": "/^\\d+\\.\\d*[02468]\\.\\d+(?:-.+-\\d+(?:-r\\d+)?)?$/"
},
Expand All @@ -39,23 +39,31 @@
{
"description": "Multiple major updates for docker database images",
"matchDatasources": ["docker"],
"matchDepNames": ["postgres", "mariadb"],
"matchDepPatterns": ["(^|\\/)postgresql$", "(^|\\/)mariadb$"],
"matchDepNames": [
"postgres",
"mariadb",
"/(^|\\/)postgresql$/",
"/(^|\\/)mariadb$/"
],
"excludePackagePrefixes": ["registry-1.docker.io/bitnamicharts/"],
"separateMultipleMajor": true
},
{
"description": "Don't group docker database images major updates",
"matchDatasources": ["docker"],
"matchDepNames": ["postgres", "mariadb"],
"matchPackagePatterns": ["(^|\\/)postgresql$", "(^|\\/)mariadb$"],
"matchDepNames": [
"postgres",
"mariadb",
"/(^|\\/)postgresql$/",
"/(^|\\/)mariadb$/",
"!registry-1.docker.io/bitnamicharts/"
],
"matchUpdateTypes": ["major"],
"excludePackagePrefixes": ["registry-1.docker.io/bitnamicharts/"],
"groupName": null
},
{
"description": "Force different branch for dotnet runtime dependend major updates",
"matchPackagePrefixes": ["Microsoft.AspNetCore"],
"matchPackageNames": ["Microsoft.AspNetCore**"],
"matchDatasources": ["nuget"],
"matchUpdateTypes": ["major"],
"groupName": "dotnet-aspnet"
Expand All @@ -76,7 +84,7 @@
},
{
"description": "Fix zalando spilo docker image versioning",
"matchPackagePrefixes": ["ghcr.io/zalando/spilo-"],
"matchPackageNames": ["ghcr.io/zalando/spilo-**"],
"matchDatasources": ["docker"],
"versioning": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)-p(?<patch>\\d+)$"
},
Expand All @@ -93,7 +101,7 @@
"commitMessageTopic": "helm chart {{depName}}"
},
{
"matchSourceUrlPrefixes": ["https://github.com/bitnami/charts"],
"matchSourceUrls": ["https://github.com/bitnami/charts{,/}**"],
"commitMessageTopic": "helm chart {{depName}}"
},
{
Expand All @@ -104,7 +112,7 @@
{
"description": "Use `semver` for official action updates",
"matchDepTypes": ["action"],
"matchDepPatterns": ["^actions/"],
"matchDepNames": ["/^actions//"],
"versioning": "semver"
},
{
Expand Down
66 changes: 32 additions & 34 deletions groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,48 +2,48 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"packageRules": [
{
"matchSourceUrlPrefixes": ["https://github.com/NLog/"],
"matchSourceUrls": ["https://github.com/NLog/**"],
"groupName": "nlog packages",
"separateMinorPatch": false
},
{
"matchSourceUrlPrefixes": ["https://github.com/adamralph/minver"],
"matchSourceUrls": ["https://github.com/adamralph/minver{,/}**"],
"groupName": "minver packages"
},
{
"matchPackagePatterns": ["^mcr\\.microsoft\\.com\\/dotnet\\/"],
"matchPackageNames": ["mcr.microsoft.com/dotnet/**"],
"groupName": "dotnet docker images"
},
{
"matchSourceUrlPrefixes": ["https://github.com/deepsweet/start"],
"matchSourceUrls": ["https://github.com/deepsweet/start{,/}**"],
"groupName": "start monorepo"
},
{
"matchSourceUrlPrefixes": ["https://github.com/unitycontainer/"],
"matchSourceUrls": ["https://github.com/unitycontainer/**"],
"groupName": "unity packages"
},
{
"matchSourceUrlPrefixes": ["https://github.com/theramis/Snapper"],
"matchSourceUrls": ["https://github.com/theramis/Snapper{,/}**"],
"groupName": "snapper packages"
},
{
"matchSourceUrlPrefixes":["https://github.com/AzureAD/microsoft-identity-web"],
"matchSourceUrls":["https://github.com/AzureAD/microsoft-identity-web{,/}**"],
"groupName": "microsoft-identity-web monorepo"
},
{
"matchPackagePatterns": ["(^|/)renovate$"],
"matchPackageNames": ["/(^|/)renovate$/"],
"groupName": "renovatebot",
"dependencyDashboardApproval": false,
"automerge": true
},
{
"matchSourceUrlPrefixes": ["https://github.com/microsoft/msbuild"],
"matchSourceUrls": ["https://github.com/microsoft/msbuild{,/}**"],
"groupName": "MSBuild monorepo"
},
{
"matchSourceUrlPrefixes": [
"https://github.com/microsoft/fluentui",
"https://github.com/OfficeDev/office-ui-fabric-react"
"matchSourceUrls": [
"https://github.com/microsoft/fluentui{,/}**",
"https://github.com/OfficeDev/office-ui-fabric-react{,/}**"
],
"groupName": "Fluent UI monorepo"
},
Expand All @@ -52,13 +52,12 @@
"groupName": "react monorepo"
},
{
"matchPackageNames": ["prettier"],
"matchPackagePatterns": ["^@prettier\\/", "^prettier-plugin-"],
"matchPackageNames": ["prettier","@prettier/**", "prettier-plugin-**"],
"groupName": "prettier packages"
},
{
"matchSourceUrlPrefixes": [
"https://github.com/tunnelvisionlabs/antlr4ts"
"matchSourceUrls": [
"https://github.com/tunnelvisionlabs/antlr4ts{,/}**"
],
"groupName": "antlr4ts monorepo"
},
Expand All @@ -73,8 +72,7 @@
{
"description": "PostgreSQL chart and images",
"matchDatasources": ["helm", "docker"],
"matchDepNames": ["postgres"],
"matchPackagePatterns": ["(^|\\/)postgresql$"],
"matchDepNames": ["postgres","/(^|\\/)postgresql$/"],
"groupName": "PostgreSQL",
"additionalBranchPrefix": "",
"group": { "commitMessageTopic": "{{{groupName}}} group" },
Expand All @@ -83,7 +81,7 @@
{
"description": "MariaDB chart and images",
"matchDatasources": ["helm", "docker"],
"matchPackagePatterns": ["(^|\\/)mariadb$"],
"matchPackageNames": ["/(^|\\/)mariadb$/"],
"groupName": "MariaDB",
"additionalBranchPrefix": "",
"group": { "commitMessageTopic": "{{{groupName}}} group" },
Expand All @@ -92,7 +90,7 @@
{
"description": "MinIO chart and images",
"matchDatasources": ["helm", "docker"],
"matchPackagePatterns": ["(^|\\/)minio$"],
"matchPackageNames": ["/(^|\\/)minio$/"],
"groupName": "MinIO",
"additionalBranchPrefix": "",
"group": { "commitMessageTopic": "{{{groupName}}} group" },
Expand All @@ -101,7 +99,7 @@
{
"description": "Traefik chart and images",
"matchDatasources": ["helm", "docker"],
"matchPackagePatterns": ["(^|\\/)traefik$"],
"matchPackageNames": ["/(^|\\/)traefik$/"],
"groupName": "Traefik",
"additionalBranchPrefix": "",
"group": { "commitMessageTopic": "{{{groupName}}} group" },
Expand All @@ -110,7 +108,7 @@
{
"description": "Redis chart and images",
"matchDatasources": ["helm", "docker"],
"matchPackagePatterns": ["(^|\\/)redis(?:-cluster)?$"],
"matchPackageNames": ["/(^|\\/)redis(?:-cluster)?$/"],
"groupName": "Redis",
"additionalBranchPrefix": "",
"group": { "commitMessageTopic": "{{{groupName}}} group" },
Expand All @@ -119,7 +117,7 @@
{
"description": "CoreDNS chart and images",
"matchDatasources": ["helm", "docker"],
"matchPackagePatterns": ["(^|\\/)coredns$"],
"matchPackageNames": ["/(^|\\/)coredns$/"],
"groupName": "CoreDNS",
"additionalBranchPrefix": "",
"group": { "commitMessageTopic": "{{{groupName}}} group" },
Expand All @@ -128,7 +126,7 @@
{
"description": "phpMyAdmin chart and images",
"matchDatasources": ["helm", "docker"],
"matchPackagePatterns": ["(^|\\/)phpmyadmin$"],
"matchPackageNames": ["/(^|\\/)phpmyadmin$/"],
"groupName": "phpMyAdmin",
"additionalBranchPrefix": "",
"group": { "commitMessageTopic": "{{{groupName}}} group" },
Expand All @@ -137,7 +135,7 @@
{
"description": "pgAdmin chart and images",
"matchDatasources": ["helm", "docker"],
"matchPackagePatterns": ["(^|\\/)pgadmin4$"],
"matchPackageNames": ["/(^|\\/)pgadmin4$/"],
"groupName": "pgAdmin",
"additionalBranchPrefix": "",
"group": { "commitMessageTopic": "{{{groupName}}} group" },
Expand All @@ -146,7 +144,7 @@
{
"description": "Gitea chart and images",
"matchDatasources": ["helm", "docker"],
"matchPackagePatterns": ["(^|\\/)gitea$"],
"matchPackageNames": ["/(^|\\/)gitea$/"],
"groupName": "Gitea",
"additionalBranchPrefix": "",
"group": { "commitMessageTopic": "{{{groupName}}} group" },
Expand All @@ -155,38 +153,38 @@
{
"description": "Matomo chart and images",
"matchDatasources": ["helm", "docker"],
"matchPackagePatterns": ["(^|\\/)matomo$"],
"matchPackageNames": ["/(^|\\/)matomo$/"],
"groupName": "Matomo",
"additionalBranchPrefix": "",
"group": { "commitMessageTopic": "{{{groupName}}} group" },
"separateMinorPatch": false
},
{
"description": "OpenSearch charts",
"matchSourceUrlPrefixes": [
"https://github.com/opensearch-project/helm-charts"
"matchSourceUrls": [
"https://github.com/opensearch-project/helm-charts{,/}**"
],
"groupName": "OpenSearch charts"
},
{
"description": "swc mono repo",
"matchSourceUrlPrefixes": ["https://github.com/swc-project/swc"],
"matchSourceUrls": ["https://github.com/swc-project/swc{,/}**"],
"groupName": "SWC monorepo",
"separateMinorPatch": false
},
{
"description": "syncfusion ej2 packages",
"matchSourceUrlPrefixes": [
"https://github.com/syncfusion/ej2-javascript-ui-controls",
"https://github.com/syncfusion/ej2-angular-ui-components"
"matchSourceUrls": [
"https://github.com/syncfusion/ej2-javascript-ui-controls{,/}**",
"https://github.com/syncfusion/ej2-angular-ui-components{,/}**"
],
"groupName": "syncfusion ej2 packages",
"semanticCommitType": "fix"
},
{
"description": "syncfusion ej2 packages (workaround)",
"matchDatasources": ["npm"],
"matchDepPrefixes": ["@syncfusion/ej2-"],
"matchDepNames": ["@syncfusion/ej2-**"],
"groupName": "syncfusion ej2 packages",
"semanticCommitType": "fix"
},
Expand Down
8 changes: 4 additions & 4 deletions meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"packageRules": [
{
"matchDepPatterns": ["(^|/)rook/"],
"matchDepNames": ["/(^|/)rook//"],
"matchDatasources": ["docker"],
"sourceUrl": "https://github.com/rook/rook"
},
Expand All @@ -17,12 +17,12 @@
"sourceUrl": "https://www.pgadmin.org"
},
{
"matchDepPatterns": ["^(?:amd64/)?nextcloud$"],
"matchDepNames": ["/^(?:amd64/)?nextcloud$/"],
"matchDatasources": ["docker"],
"sourceUrl": "https://nextcloud.com/changelog"
},
{
"matchDepPatterns": ["^certbot/"],
"matchDepNames": ["/^certbot//"],
"matchDatasources": ["docker"],
"sourceUrl": "https://github.com/certbot/certbot"
},
Expand All @@ -37,7 +37,7 @@
"sourceUrl": "https://github.com/acmesh-official/acme.sh"
},
{
"matchDepPrefixes": ["ghcr.io/zalando/spilo-"],
"matchDepNames": ["ghcr.io/zalando/spilo-**"],
"matchDatasources": "docker",
"sourceUrl": "https://github.com/zalando/spilo"
},
Expand Down
4 changes: 2 additions & 2 deletions ng.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
},
{
"description": "Add jest-preset-angular major update to Jest monorepo",
"matchSourceUrlPrefixes": [
"https://github.com/thymikee/jest-preset-angular"
"matchSourceUrls": [
"https://github.com/thymikee/jest-preset-angular{,/}**"
],
"matchUpdateTypes": ["major"],
"groupName": "jest monorepo"
Expand Down
Loading

0 comments on commit 9388275

Please sign in to comment.