Skip to content

Commit

Permalink
ci: Enable renovate pre-commit (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
AzHicham authored Dec 10, 2023
1 parent 74e3d33 commit d1fc759
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ repos:
rev: v1.0
hooks:
- id: fmt
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 37.45.0
hooks:
- id: renovate-config-validator
51 changes: 50 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,54 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
]
],
"labels": ["dependencies"],
"pre-commit": {
"enabled": true
},
"packageRules": [
{
"matchUpdateTypes": ["major"],
"addLabels": ["major"]
},
{
"matchUpdateTypes": ["minor"],
"addLabels": ["minor"]
},
{
"matchUpdateTypes": ["patch"],
"addLabels": ["patch"]
},
{
"matchManagers": ["cargo"],
"addLabels": ["rust"]
},
{
"matchManagers": ["pre-commit"],
"addLabels": ["pre-commit"]
},
{
"matchManagers": ["github-actions"],
"addLabels": ["github_actions"]
},
{
"matchManagers": ["cargo"],
"matchUpdateTypes": ["minor", "patch"],
"groupName": "cargo"
},
{
"matchManagers": ["pre-commit"],
"matchUpdateTypes": ["minor", "patch"],
"groupName": "pre-commit"
},
{
"matchManagers": ["github-actions"],
"matchUpdateTypes": ["minor", "patch"],
"groupName": "github-actions"
}
],
"vulnerabilityAlerts": {
"enabled": true,
"labels": ["security"]
}
}

0 comments on commit d1fc759

Please sign in to comment.