Skip to content

Commit

Permalink
chore(ci): split package rules out by language (#137)
Browse files Browse the repository at this point in the history
* Break out JS/TS into own config

* Break out Java into own config

* Break out Python into own config

* Break out GH Actions into own config

* Rename Javascript rules file
  • Loading branch information
DerekRoberts authored Oct 7, 2024
1 parent 47ce935 commit 30a938f
Show file tree
Hide file tree
Showing 5 changed files with 160 additions and 138 deletions.
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$"
]
}
]
}

0 comments on commit 30a938f

Please sign in to comment.