Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): split package rules out by language #137

Merged
merged 5 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
143 changes: 5 additions & 138 deletions default.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,151 +26,18 @@
":preserveSemverRanges",
":rebaseStalePrs",
":semanticCommits",
":semanticCommitScope(deps)"
":semanticCommitScope(deps)",
"github>bcgov/renovate-config/renovate-actions.json5",
"github>bcgov/renovate-config/renovate-java.json5",
"github>bcgov/renovate-config/renovate-javascript.json5",
"github>bcgov/renovate-config/renovate-python.json5"
],
"forkProcessing": "enabled",
"ignorePresets": [
":ignoreModulesAndTests"
],
"minimumReleaseAge": "7 days",
"onboarding": true,
"packageRules": [
{
"groupName": "github actions all dependencies",
"groupSlug": "github actions all",
"matchManagers": [
"github-actions"
],
"matchUpdateTypes": [
"major",
"minor",
"patch",
"pin",
"pinDigest",
"digest",
"lockFileMaintenance",
"rollback",
"bump",
"replacement"
]
},
{
"description": "Py - group boto",
"groupName": "boto",
"matchPackagePatterns": [
"^boto3$",
"^botocore$"
]
},
{
"description": "Py - group pytest",
"groupName": "pytest",
"matchPackagePatterns": [
"^pytest$",
"^pytest-"
]
},
{
"description": "Py - group sqlalchemy",
"groupName": "sqlalchemy",
"matchPackagePatterns": [
"^sqlalchemy$",
"^sqlmodel$",
"^sqlacodegen$",
"^mock-alchemy$"
]
},
{
"description": "JS - group vite",
"groupName": "vite",
"matchPackagePatterns": [
"^vite$",
"^@vitejs\\/"
]
},
{
"description": "JS - group linters",
"groupName": "linters",
"matchPackagePatterns": [
"eslint",
"^@prettier\\/",
"^prettier-plugin-"
]
},
{
"description": "JS - group @angular",
"groupName": "angular",
"matchPackagePatterns": [
"^@angular\\/",
"^@angular-"
]
},
{
"description": "JS - group aws-amplify",
"groupName": "aws-amplify",
"matchPackagePatterns": [
"^@aws-amplify\\/",
"^aws-amplify"
]
},
{
"description": "JS - group @testing-library",
"groupName": "testing-library",
"matchPackagePatterns": [
"^@testing-library\\/"
]
},
{
"description": "JS - group @nestjs",
"groupName": "nestjs",
"matchPackagePatterns": [
"^@nestjs\\/",
"nestjs-",
"nest-winston",
"reflect-metadata"
]
},
{
"description": "JS - group @mui",
"groupName": "mui",
"matchPackagePatterns": [
"^@mui\\/"
]
},
{
"description": "JS - group redux",
"groupName": "redux",
"matchPackagePatterns": [
"^@redux-devtools\\/",
"redux",
"react-redux",
"redux-thunk"
]
},
{
"groupName": "maven all non-major dependencies",
"groupSlug": "maven all-minor-patch",
"matchManagers": [
"maven"
],
"matchUpdateTypes": [
"minor",
"patch",
"lockFileMaintenance"
]
},
{
"description": "JS - block eslint9",
"enabled": false,
"groupName": "eslint9",
"matchManagers": [
"npm"
],
"matchPackagePatterns": [
"eslint"
]
}
],
"platform": "github",
"platformAutomerge": true,
"prConcurrentLimit": 5
Expand Down
24 changes: 24 additions & 0 deletions rules-actions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"packageRules": [
{
"groupName": "github actions all dependencies",
"groupSlug": "github actions all",
"matchManagers": [
"github-actions"
],
"matchUpdateTypes": [
"major",
"minor",
"patch",
"pin",
"pinDigest",
"digest",
"lockFileMaintenance",
"rollback",
"bump",
"replacement"
]
}
]
}
17 changes: 17 additions & 0 deletions rules-java.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"packageRules": [
{
"groupName": "maven all non-major dependencies",
"groupSlug": "maven all-minor-patch",
"matchManagers": [
"maven"
],
"matchUpdateTypes": [
"minor",
"patch",
"lockFileMaintenance"
]
}
]
}
83 changes: 83 additions & 0 deletions rules-javascript.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"packageRules": [
{
"description": "Group vite",
"groupName": "vite",
"matchPackagePatterns": [
"^vite$",
"^@vitejs\\/"
]
},
{
"description": "Group linters",
"groupName": "linters",
"matchPackagePatterns": [
"eslint",
"^@prettier\\/",
"^prettier-plugin-"
]
},
{
"description": "Group @angular",
"groupName": "angular",
"matchPackagePatterns": [
"^@angular\\/",
"^@angular-"
]
},
{
"description": "Group aws-amplify",
"groupName": "aws-amplify",
"matchPackagePatterns": [
"^@aws-amplify\\/",
"^aws-amplify"
]
},
{
"description": "Group @testing-library",
"groupName": "testing-library",
"matchPackagePatterns": [
"^@testing-library\\/"
]
},
{
"description": "Group @nestjs",
"groupName": "nestjs",
"matchPackagePatterns": [
"^@nestjs\\/",
"nestjs-",
"nest-winston",
"reflect-metadata"
]
},
{
"description": "Group @mui",
"groupName": "mui",
"matchPackagePatterns": [
"^@mui\\/"
]
},
{
"description": "Group redux",
"groupName": "redux",
"matchPackagePatterns": [
"^@redux-devtools\\/",
"redux",
"react-redux",
"redux-thunk"
]
},
{
"description": "JS - block eslint9",
"enabled": false,
"groupName": "eslint9",
"matchManagers": [
"npm"
],
"matchPackagePatterns": [
"eslint"
]
}
]
}
31 changes: 31 additions & 0 deletions rules-python.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"packageRules": [
{
"description": "Group boto",
"groupName": "boto",
"matchPackagePatterns": [
"^boto3$",
"^botocore$"
]
},
{
"description": "Group pytest",
"groupName": "pytest",
"matchPackagePatterns": [
"^pytest$",
"^pytest-"
]
},
{
"description": "Group sqlalchemy",
"groupName": "sqlalchemy",
"matchPackagePatterns": [
"^sqlalchemy$",
"^sqlmodel$",
"^sqlacodegen$",
"^mock-alchemy$"
]
}
]
}